/**************************************************************************/
-static waypoint* get_wpt(struct wprdata* wprdata, unsigned n)
+static Waypoint* get_wpt(struct wprdata* wprdata, unsigned n)
{
struct wpthdr* wpthdr;
struct wpt* wpt;
int j, idx;
- waypoint* WP;
+ Waypoint* WP;
wpthdr = &(wprdata->wpthdr);
idx = wpthdr->idx[n];
}
wpt = &(wprdata->wpt[idx]);
- WP = new waypoint;
+ WP = new Waypoint;
WP->latitude = -pt2deg(wpt->pt.y);
WP->longitude = pt2deg(wpt->pt.x);
WP->SetCreationTime(unpack_time(wpt->date, wpt->time));
struct rtehdr* rtehdr;
struct rte* rte;
int i, j, idx;
- waypoint* WP;
+ Waypoint* WP;
route_head* RT;
if (gbfread(&wprdata, sizeof(struct wprdata), 1, fin) != 1) {
struct trldata trldata;
struct trkhdr* trkhdr;
struct trklog* trklog;
- waypoint* WP;
+ Waypoint* WP;
route_head* TL;
int i, j;
/* track points */
trklog = &(trldata.trklog[i]);
for (j=0; j<trkhdr->totalpt; j++) {
- WP = new waypoint;
+ WP = new Waypoint;
WP->latitude = -pt2deg(trklog->pt[j].y);
WP->longitude = pt2deg(trklog->pt[j].x);
WP->altitude = hgt2m(trklog->sh[j].height);
/**************************************************************************/
-static int find_wpt(struct wprdata* wprdata, const waypoint* WP)
+static int find_wpt(struct wprdata* wprdata, const Waypoint* WP)
{
struct wpt pattern, *wpt;
int i, wpt_idx;
return -1;
}
-static int add_wpt(struct wprdata* wprdata, const waypoint* WP,int isroute)
+static int add_wpt(struct wprdata* wprdata, const Waypoint* WP,int isroute)
{
struct wpthdr* wpthdr;
int hdr_idx, wpt_idx;
return hdr_idx;
}
-static void wpr_waypoint(const waypoint* WP)
+static void wpr_waypoint(const Waypoint* WP)
{
add_wpt(&WPR, WP, 0);
}
/* rtehdr->rteno = rte_idx; */
}
-static void wpr_route_wpt(const waypoint* WP)
+static void wpr_route_wpt(const Waypoint* WP)
{
struct rte* rte;
int wpt_idx;
TRL.loghdr.num = idx;
}
-static void trl_track_wpt(const waypoint* WP)
+static void trl_track_wpt(const Waypoint* WP)
{
struct trklog* trklog;
struct trkhdr* trkhdr;
unsigned long count = 0;
unsigned long i = 0;
an1_waypoint_record* rec = NULL;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
char* icon = NULL;
ReadShort(f);
count = ReadLong(f);
for (i = 0; i < count; i++) {
rec = Alloc_AN1_Waypoint();
Read_AN1_Waypoint(f, rec);
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
if (rec->creation_time) {
wpt_tmp->SetCreationTime(rec->creation_time);
}
static void
-Write_One_AN1_Waypoint(const waypoint* wpt)
+Write_One_AN1_Waypoint(const Waypoint* wpt)
{
an1_waypoint_record* rec;
int local;
an1_line_record* rec = NULL;
an1_vertex_record* vert = NULL;
route_head* rte_head;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
ReadShort(f);
count = ReadLong(f);
Read_AN1_Vertex(f, vert);
/* create route point */
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = DecodeOrd(vert->lat);
wpt_tmp->longitude = -DecodeOrd(vert->lon);
wpt_tmp->shortname = QString().sprintf("\\%5.5lx", rtserial++);
}
static void
-Write_One_AN1_Vertex(const waypoint* wpt)
+Write_One_AN1_Vertex(const Waypoint* wpt)
{
an1_vertex_record* rec;
int local;
double distance;
double prjlatitude, prjlongitude;
double frac;
- waypoint* arcpt1, * arcpt2;
+ Waypoint* arcpt1, * arcpt2;
} extra_data;
static
#define BADVAL 999999
static void
-arcdist_arc_disp_wpt_cb(const waypoint* arcpt2)
+arcdist_arc_disp_wpt_cb(const Waypoint* arcpt2)
{
queue* elem, * tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
extra_data* ed;
double dist;
double prjlat, prjlon, frac;
- static waypoint* arcpt1 = NULL;
+ static Waypoint* arcpt1 = NULL;
if (arcpt2 && arcpt2->latitude != BADVAL && arcpt2->longitude != BADVAL &&
(ptsopt || (arcpt1 &&
(arcpt1->latitude != BADVAL && arcpt1->longitude != BADVAL)))) {
#if NEWQ
- foreach(waypoint* waypointp, waypt_list) {
+ foreach(Waypoint* waypointp, waypt_list) {
#else
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
#endif
if (waypointp->extra_data) {
ed = (extra_data*) waypointp->extra_data;
ed->prjlongitude = prjlon;
ed->frac = frac;
ed->arcpt1 = arcpt1;
- ed->arcpt2 = (waypoint*) arcpt2;
+ ed->arcpt2 = (Waypoint*) arcpt2;
}
}
waypointp->extra_data = ed;
}
}
}
- arcpt1 = (waypoint*) arcpt2;
+ arcpt1 = (Waypoint*) arcpt2;
}
static void
int fileline = 0;
char* line;
gbfile* file_in;
- waypoint* arcpt2, * arcpt1;
+ Waypoint* arcpt2, * arcpt1;
file_in = gbfopen(arcfileopt, "r", MYNAME);
- arcpt1 = new waypoint;
- arcpt2 = new waypoint;
+ arcpt1 = new Waypoint;
+ arcpt2 = new Waypoint;
arcdist_arc_disp_hdr_cb(NULL);
arcpt2->latitude = arcpt2->longitude = BADVAL;
if (argsfound != 2 && strspn(line, " \t\n") < strlen(line)) {
warning(MYNAME ": Warning: Arc file contains unusable vertex on line %d.\n", fileline);
} else {
- waypoint* arcpttmp = arcpt1;
+ Waypoint* arcpttmp = arcpt1;
arcdist_arc_disp_wpt_cb(arcpt2);
arcpt1 = arcpt2;
arcpt2 = arcpttmp;
removed = 0;
#if NEWQ
- foreach(waypoint* wp, waypt_list) {
+ foreach(Waypoint* wp, waypt_list) {
#else
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypoint* wp = (waypoint*) elem;
+ Waypoint* wp = (Waypoint*) elem;
#endif
extra_data* ed;
ed = (extra_data*) wp->extra_data;
};
static void
-bcr_handle_icon_str(const char* str, waypoint* wpt)
+bcr_handle_icon_str(const char* str, Waypoint* wpt)
{
bcr_icon_mapping_t* m;
static void
bcr_create_waypts_from_route(route_head* route)
{
- waypoint* wpt;
+ Waypoint* wpt;
queue* elem, *tmp;
QUEUE_FOR_EACH(&route->waypoint_list, elem, tmp) {
- wpt = new waypoint(*(waypoint*) elem);
+ wpt = new Waypoint(*(Waypoint*) elem);
waypt_add(wpt);
}
}
char station[32];
char* str;
int mlat, mlon; /* mercator data */
- waypoint* wpt;
+ Waypoint* wpt;
snprintf(station, sizeof(station), "STATION%d", index);
if (NULL == (str = inifile_readstr(ini, "coordinates", station))) {
fatal(MYNAME ": structure error at %s (Coordinates)!\n", station);
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->shortname = station;
bcr_mercator_to_wgs84(mlat, mlon, &wpt->latitude, &wpt->longitude);
}
static void
-bcr_write_wpt(const waypoint* wpt)
+bcr_write_wpt(const Waypoint* wpt)
{
}
bcr_route_header(const route_head* route)
{
queue* elem, *tmp;
- waypoint* wpt;
+ Waypoint* wpt;
QString sout;
int i, north, east, nmin, nmax, emin, emax;
i = 0;
QUEUE_FOR_EACH(&route->waypoint_list, elem, tmp) {
const char* icon;
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
i++;
i = 0;
QUEUE_FOR_EACH(&route->waypoint_list, elem, tmp) {
i++;
- wpt = (waypoint*) elem;
+ wpt = (Waypoint*) elem;
bcr_wgs84_to_mercator(wpt->latitude, wpt->longitude, &north, &east);
QString s1, s2;
i++;
- wpt = (waypoint*) elem;
+ wpt = (Waypoint*) elem;
s1 = wpt->notes;
if (s1.isEmpty()) {
s1 = wpt->description;
route_flush_all_routes();
}
-static waypoint*
-create_wpt_dest(const waypoint* wpt_orig, double lat_orig,
+static Waypoint*
+create_wpt_dest(const Waypoint* wpt_orig, double lat_orig,
double long_orig, double lat_orig_adj, double long_orig_adj)
{
double distance = gcdist(lat_orig, long_orig,
double frac;
double lat_dest;
double long_dest;
- waypoint* wpt_dest = NULL;
+ Waypoint* wpt_dest = NULL;
distance = radtometers(distance);
if (distance <= maxDist) {
return NULL;
linepart(lat_orig, long_orig, lat_orig_adj, long_orig_adj, frac,
&lat_dest, &long_dest);
- wpt_dest = new waypoint(*wpt_orig);
+ wpt_dest = new Waypoint(*wpt_orig);
wpt_dest->latitude = DEG(lat_dest);
wpt_dest->longitude = DEG(long_dest);
static void
process_route(const route_head* route_orig, route_head* route_dest)
{
- waypoint* wpt_orig_prev = NULL;
- waypoint* wpt_orig = NULL;
+ Waypoint* wpt_orig_prev = NULL;
+ Waypoint* wpt_orig = NULL;
queue* elem, *tmp;
QUEUE_FOR_EACH(&route_orig->waypoint_list, elem, tmp) {
- waypoint* wpt_orig_next = (waypoint*)elem;
+ Waypoint* wpt_orig_next = (Waypoint*)elem;
if (wpt_orig_prev == NULL) {
if (wpt_orig != NULL) {
- waypoint* waypoint_dest = new waypoint(*wpt_orig);
+ Waypoint* waypoint_dest = new Waypoint(*wpt_orig);
route_add_wpt(route_dest, waypoint_dest);
}
} else {
double lat_orig_next = RAD(wpt_orig_next->latitude);
double long_orig_next = RAD(wpt_orig_next->longitude);
- waypoint* wpt_dest_next = NULL;
+ Waypoint* wpt_dest_next = NULL;
if (is_small_angle(lat_orig, long_orig, lat_orig_prev,
long_orig_prev, lat_orig_next, long_orig_next)) {
- waypoint* waypoint_dest = new waypoint(*wpt_orig);
+ Waypoint* waypoint_dest = new Waypoint(*wpt_orig);
route_add_wpt(route_dest, waypoint_dest);
} else {
- waypoint* wpt_dest_prev = create_wpt_dest(wpt_orig,
+ Waypoint* wpt_dest_prev = create_wpt_dest(wpt_orig,
lat_orig, long_orig, lat_orig_prev, long_orig_prev);
if (wpt_dest_prev != NULL) {
route_add_wpt(route_dest, wpt_dest_prev);
}
if (wpt_orig != NULL) {
- waypoint* waypoint_dest = new waypoint(*wpt_orig);
+ Waypoint* waypoint_dest = new Waypoint(*wpt_orig);
route_add_wpt(route_dest, waypoint_dest);
}
}
static route_head* track;
static unsigned char interval;
time_t finish;
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
int i;
if (global_opts.debug_level >= 3) {
break;
case st_sample_alt:
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = wpt->longitude = 0.0;
wpt->SetCreationTime(creation);
creation += interval;
int32_t lat_tmp,lon_tmp;
unsigned int proximity;
unsigned int icon;
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
lat_tmp = gbfgetint32(file_in);
lon_tmp = gbfgetint32(file_in);
}
static void
-bushnell_write_one(const waypoint* wpt)
+bushnell_write_one(const Waypoint* wpt)
{
char tbuf[20]; // 19 text bytes + null terminator.
char padding[2] = {0, 0};
int lat_tmp,lon_tmp;
while (1) {
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
lat_tmp = gbfgetint32(file_in);
lon_tmp = gbfgetint32(file_in);
break;
}
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = lat_tmp / 10000000.0;
wpt_tmp->longitude = lon_tmp / 10000000.0;
}
static void
-bushnell_write_one(const waypoint* wpt)
+bushnell_write_one(const Waypoint* wpt)
{
int32_t lat = wpt->latitude * 10000000.0;
int32_t lon = wpt->longitude * 10000000.0;
/* -------------------------------------------------------------------- */
static void
-cet_flag_waypt(const waypoint* wpt)
+cet_flag_waypt(const Waypoint* wpt)
{
- ((waypoint*)(wpt))->wpt_flags.cet_converted = 1;
+ ((Waypoint*)(wpt))->wpt_flags.cet_converted = 1;
}
static void
/* cet_convert_waypt: internal used within cet_convert_strings process */
static void
-cet_convert_waypt(const waypoint* wpt)
+cet_convert_waypt(const Waypoint* wpt)
{
- waypoint* w = (waypoint*)wpt;
+ Waypoint* w = (Waypoint*)wpt;
format_specific_data* fs;
if ((cet_output == 0) && (w->wpt_flags.cet_converted != 0)) {
/* specialized readers */
-static waypoint*
+static Waypoint*
parse_wpt(char* buff)
{
int col = -1;
char* c, *cx;
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
struct tm tm;
int has_time = 0;
memset(&tm, 0, sizeof(tm));
}
static void
-parse_wpt_info(const char* buff, waypoint* wpt) /* "w" */
+parse_wpt_info(const char* buff, Waypoint* wpt) /* "w" */
{
char* c;
int col = -1;
}
}
-static waypoint*
+static Waypoint*
parse_trkpt(char* buff)
{
int col = -1;
char* c;
struct tm tm;
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
c = strstr(buff, "A ");
if (c == buff) {
char* buff;
int line = 0;
int input_datum;
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
route_head* route = NULL;
route_head* track = NULL;
/* ----------------------------------------------------------- */
static void
-write_waypt_cb(const waypoint* wpt)
+write_waypt_cb(const Waypoint* wpt)
{
QString name;
}
static void
-write_trkpt_cb(const waypoint* wpt)
+write_trkpt_cb(const Waypoint* wpt)
{
char buff[128];
/* helpers */
static void
-cst_add_wpt(const route_head* track, waypoint* wpt)
+cst_add_wpt(const route_head* track, Waypoint* wpt)
{
if ((wpt == NULL) || (track == NULL)) {
return;
}
if (wpt->shortname != NULL) {
- waypt_add(new waypoint(*wpt));
+ waypt_add(new Waypoint(*wpt));
// Rather than creating a new waypt on each read, tis format bizarrely
// recycles the same one, relying on new waypoint(*) above and then manually
// resetting fields. Weird.
temp_route = route_head_alloc();
route_add_head(temp_route);
}
- route_add_wpt(temp_route, new waypoint(*wpt));
+ route_add_wpt(temp_route, new Waypoint(*wpt));
}
- track_add_wpt((route_head*)track, (waypoint*)wpt);
+ track_add_wpt((route_head*)track, (Waypoint*)wpt);
}
static char*
int cst_version;
int cst_points = -1;
route_head* track = NULL;
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
while ((buff = gbfgetstr(fin))) {
char* cin = buff;
wpt = NULL;
- wpt = new waypoint;
+ wpt = new Waypoint;
if (5 != sscanf(cin, "%lf %lf %lf %d %s",
&wpt->longitude,
/*****************************************************************************
* human_to_dec() - convert a "human-readable" lat and/or lon to decimal
- * usage: human_to_dec( "N 41° 09.12' W 085° 09.36'", &lat, &lon );
+ * usage: human_to_dec( "N 41� 09.12' W 085� 09.36'", &lat, &lon );
* human_to_dec( "41 9 5.652 N", &lat, &lon );
*
* which: 0-no preference 1-prefer lat 2-prefer lon
}
static garmin_fs_t*
-gmsd_init(waypoint* wpt)
+gmsd_init(Waypoint* wpt)
{
garmin_fs_t* gmsd = GMSD_FIND(wpt);
if (gmsd == NULL) {
/* usage: xcsv_parse_val("-123.34", *waypt, *field_map) */
/*****************************************************************************/
static void
-xcsv_parse_val(const char* s, waypoint* wpt, const field_map_t* fmp,
+xcsv_parse_val(const char* s, Waypoint* wpt, const field_map_t* fmp,
route_head** trk)
{
const char* enclosure = "";
{
char* buff;
char* s;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int linecount = 0;
queue* elem, *tmp;
field_map_t* fmp;
}
if (strlen(buff)) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
s = buff;
s = csv_lineparse(s, xcsv_file.field_delimiter,
/* (the output meat) */
/*****************************************************************************/
static void
-xcsv_waypt_pr(const waypoint* wpt)
+xcsv_waypt_pr(const Waypoint* wpt)
{
char buff[1024];
const char* write_delimiter;
typedef const char* xg_string;
#endif
-class waypoint
+class Waypoint
{
private:
static geocache_data empty_gc_data;
void* extra_data; /* Extra data added by, say, a filter. */
private:
- waypoint& operator=(const waypoint& other);
+ Waypoint& operator=(const Waypoint& other);
public:
- waypoint();
- ~waypoint();
- waypoint(const waypoint& other);
+ Waypoint();
+ ~Waypoint();
+ Waypoint(const Waypoint& other);
bool HasUrlLink() const;
const UrlLink& GetUrlLink() const;
typedef void (*ff_read)(void);
typedef void (*ff_write)(void);
typedef void (*ff_exit)(void);
-typedef void (*ff_writeposn)(waypoint*);
-typedef waypoint* (*ff_readposn)(posn_status*);
+typedef void (*ff_writeposn)(Waypoint*);
+typedef Waypoint* (*ff_readposn)(posn_status*);
#ifndef DEBUG_MEM
char* get_option(const char* iarglist, const char* argname);
typedef void (*filter_deinit)(void);
typedef void (*filter_exit)(void);
-typedef void (*waypt_cb)(const waypoint*);
+typedef void (*waypt_cb)(const Waypoint*);
typedef void (*route_hdr)(const route_head*);
typedef void (*route_trl)(const route_head*);
-void waypt_add(waypoint*);
-waypoint* waypt_dupe(const waypoint*);
-waypoint* waypt_new(void);
-void waypt_del(waypoint*);
-void waypt_free(waypoint*);
+void waypt_add(Waypoint*);
+Waypoint* waypt_dupe(const Waypoint*);
+Waypoint* waypt_new(void);
+void waypt_del(Waypoint*);
+void waypt_free(Waypoint*);
void waypt_disp_all(waypt_cb);
void waypt_disp_session(const session_t* se, waypt_cb cb);
void waypt_init_bounds(bounds* bounds);
int waypt_bounds_valid(bounds* bounds);
-void waypt_add_to_bounds(bounds* bounds, const waypoint* waypointp);
+void waypt_add_to_bounds(bounds* bounds, const Waypoint* waypointp);
void waypt_compute_bounds(bounds*);
double gcgeodist(const double lat1, const double lon1,
const double lat2, const double lon2);
void waypt_flush_all(void);
unsigned int waypt_count(void);
void set_waypt_count(unsigned int nc);
-void waypt_add_url(waypoint* wpt, const QString& link,
+void waypt_add_url(Waypoint* wpt, const QString& link,
const QString& url_link_text);
void xcsv_setup_internal_style(const char* style_buf);
void xcsv_read_internal_style(const char* style_buf);
-waypoint* find_waypt_by_name(const QString& name);
+Waypoint* find_waypt_by_name(const QString& name);
void waypt_backup(signed int* count, queue** head_bak);
void waypt_restore(signed int count, queue* head_bak);
-geocache_data* waypt_alloc_gc_data(waypoint* wpt);
-int waypt_empty_gc_data(const waypoint* wpt);
+geocache_data* waypt_alloc_gc_data(Waypoint* wpt);
+int waypt_empty_gc_data(const Waypoint* wpt);
geocache_type gs_mktype(const QString& t);
geocache_container gs_mkcont(const QString& t);
route_head* route_head_alloc(void);
-void route_add(waypoint*);
-void route_add_wpt(route_head* rte, waypoint* wpt);
-void route_add_wpt_named(route_head* rte, waypoint* wpt, const QString& namepart, int number_digits);
-void route_del_wpt(route_head* rte, waypoint* wpt);
-void track_add_wpt(route_head* rte, waypoint* wpt);
-void track_add_wpt_named(route_head* rte, waypoint* wpt, const QString& namepart, int number_digits);
-void track_del_wpt(route_head* rte, waypoint* wpt);
+void route_add(Waypoint*);
+void route_add_wpt(route_head* rte, Waypoint* wpt);
+void route_add_wpt_named(route_head* rte, Waypoint* wpt, const QString& namepart, int number_digits);
+void route_del_wpt(route_head* rte, Waypoint* wpt);
+void track_add_wpt(route_head* rte, Waypoint* wpt);
+void track_add_wpt_named(route_head* rte, Waypoint* wpt, const QString& namepart, int number_digits);
+void track_del_wpt(route_head* rte, Waypoint* wpt);
void route_add_head(route_head* rte);
void route_del_head(route_head* rte);
void route_reverse(const route_head* rte_hd);
-waypoint* route_find_waypt_by_name(route_head* rh, const char* name);
+Waypoint* route_find_waypt_by_name(route_head* rh, const char* name);
void track_add_head(route_head* rte);
void track_del_head(route_head* rte);
void track_insert_head(route_head* rte, route_head* predecessor);
#define mkshort( a, b) MKSHORT(a,b,__FILE__, __LINE__)
#define mkshort_new_handle() MKSHORT_NEW_HANDLE(__FILE__,__LINE__)
#endif
-String mkshort_from_wpt(short_handle h, const waypoint* wpt);
+String mkshort_from_wpt(short_handle h, const Waypoint* wpt);
void mkshort_del_handle(short_handle* h);
void setshort_length(short_handle, int n);
void setshort_badchars(short_handle, const char*);
void waypt_init(void);
void route_init(void);
-void waypt_disp(const waypoint*);
+void waypt_disp(const Waypoint*);
void waypt_status_disp(int total_ct, int myct);
-double waypt_time(const waypoint* wpt);
-double waypt_speed(const waypoint* A, const waypoint* B);
-double waypt_speed_ex(const waypoint* A, const waypoint* B);
-double waypt_course(const waypoint* A, const waypoint* B);
-double waypt_distance(const waypoint* A, const waypoint* B);
-double waypt_distance_ex(const waypoint* A, const waypoint* B);
+double waypt_time(const Waypoint* wpt);
+double waypt_speed(const Waypoint* A, const Waypoint* B);
+double waypt_speed_ex(const Waypoint* A, const Waypoint* B);
+double waypt_course(const Waypoint* A, const Waypoint* B);
+double waypt_distance(const Waypoint* A, const Waypoint* B);
+double waypt_distance_ex(const Waypoint* A, const Waypoint* B);
NORETURN fatal(const char*, ...) PRINTFLIKE(1, 2);
void is_fatal(const int condition, const char*, ...) PRINTFLIKE(2, 3);
gpsbabel::DateTime current_time(void);
void dotnet_time_to_time_t(double dotnet, time_t* t, int* ms);
signed int month_lookup(const char* m);
-const char* get_cache_icon(const waypoint* waypointp);
+const char* get_cache_icon(const Waypoint* waypointp);
const char* gs_get_cachetype(geocache_type t);
const char* gs_get_container(geocache_container t);
char* xml_entitize(const char* str);
static unsigned waypoint_i;
static unsigned waypoint_n;
-static waypoint** wp_array;
+static Waypoint** wp_array;
//-----------------------------------------------------------------------------
// Message ids and sizes. Only the needed ones are here.
return mkgmtime(&t);
}
-static waypoint*
+static Waypoint*
decode_waypoint(const void* data)
{
- waypoint* wp = new waypoint;
+ Waypoint* wp = new Waypoint;
const msg_waypoint_t* p = (const msg_waypoint_t*)data;
const char* s;
float f;
message_t m;
message_t* msg_array;
unsigned msg_array_n;
- waypoint* wp = NULL;
+ Waypoint* wp = NULL;
unsigned n_point;
unsigned notes_i = 0;
unsigned notes_max = 0;
}
static void
-get_gc_notes(const waypoint* wp, int* symbol, char** notes, unsigned* notes_size)
+get_gc_notes(const Waypoint* wp, int* symbol, char** notes, unsigned* notes_size)
{
fs_xml* fs_gpx;
xml_tag* root = NULL;
}
static void
-write_waypoint(const waypoint* wp)
+write_waypoint(const Waypoint* wp)
{
message_t m;
msg_waypoint_t* p;
// Track reading
static void
-decode_sat_fix(waypoint* wp, const uint8_t status)
+decode_sat_fix(Waypoint* wp, const uint8_t status)
{
switch (status & 3) {
case 1:
fatal(MYNAME ": read too many track points\n");
}
for (i = 0; i < n; i++, j++) {
- waypoint* wp = new waypoint;
+ Waypoint* wp = new Waypoint;
float elev = le_read_float(p->point[i].elevation);
wp_array[j] = wp;
wp->SetCreationTime(decode_time(&p->point[i].year));
}
track->line_color.bbggrr = track_color(p->color[0]);
n_point = le_readu32(p->total_points);
- wp_array = (waypoint**) xcalloc(n_point, sizeof(*wp_array));
+ wp_array = (Waypoint**) xcalloc(n_point, sizeof(*wp_array));
message_free(&msg_array[0]);
for (i = 1; i < msg_array_n; i++) {
unsigned id = message_get_id(&msg_array[i]);
unsigned j = 0;
do {
- const waypoint* wp = wp_array[i];
+ const Waypoint* wp = wp_array[i];
float f;
if (j == 0) {
waypoint_i = 0;
waypoint_n = track->rte_waypt_ct;
if (waypoint_n) {
- wp_array = (waypoint**) xmalloc(waypoint_n * sizeof(*wp_array));
+ wp_array = (Waypoint**) xmalloc(waypoint_n * sizeof(*wp_array));
}
}
static void
-write_track_point(const waypoint* wp)
+write_track_point(const Waypoint* wp)
{
- wp_array[waypoint_i++] = (waypoint*)wp;
+ wp_array[waypoint_i++] = (Waypoint*)wp;
}
static void
for (i = 0; i < n; i++, j++) {
char buf[32];
- waypoint* wp = new waypoint;
+ Waypoint* wp = new Waypoint;
wp_array[j] = wp;
wp->latitude = delbin_rad2deg(le_read32(p->point[i].latitude));
wp->longitude = delbin_rad2deg(le_read32(p->point[i].longitude));
*wp_array_i = j;
}
-static waypoint*
+static Waypoint*
decode_route_point(const void* data)
{
const msg_route_point_t* p = (const msg_route_point_t*) data;
const char* s = NULL;
gbfile* fd = gbfopen(NULL, "w", MYNAME);
- waypoint* wp = new waypoint;
+ Waypoint* wp = new Waypoint;
if (p->name[0]) {
wp->shortname = p->name;
}
route_total = le_readu32(p->total_route_point);
shape_total = le_readu32(p->total_shape_point);
total = route_total + shape_total;
- wp_array = (waypoint**) xcalloc(total, sizeof(*wp_array));
+ wp_array = (Waypoint**) xcalloc(total, sizeof(*wp_array));
if (global_opts.debug_level >= DBGLVL_L) {
warning(MYNAME ": route '%s' %u points, %u shape points\n",
CSTRc(route->rte_name), route_total, shape_total);
static unsigned* shape_point_counts;
static void
-write_route_shape_points(waypoint** array, unsigned n)
+write_route_shape_points(Waypoint** array, unsigned n)
{
message_t m;
const unsigned pt_per_msg = 25;
while (i < waypoint_n) {
message_t m;
unsigned shape_n;
- const waypoint* wp = wp_array[i];
+ const Waypoint* wp = wp_array[i];
msg_route_point_t* p;
char* s;
shape_point_n = 0;
waypoint_n = track->rte_waypt_ct;
if (waypoint_n) {
- wp_array = (waypoint**) xmalloc(waypoint_n * sizeof(*wp_array));
+ wp_array = (Waypoint**) xmalloc(waypoint_n * sizeof(*wp_array));
shape_point_counts = (unsigned int*) xcalloc(waypoint_n, sizeof(*shape_point_counts));
}
}
static void
-write_route_point(const waypoint* wp)
+write_route_point(const Waypoint* wp)
{
- wp_array[waypoint_i++] = (waypoint*)wp;
+ wp_array[waypoint_i++] = (Waypoint*)wp;
#if NEW_STRINGS
if (wp->shortname.startsWith("SHP")) {
#else
//-----------------------------------------------------------------------------
// Current position
-static waypoint*
+static Waypoint*
decode_navmsg(const void* data)
{
- waypoint* wp = new waypoint;
+ Waypoint* wp = new Waypoint;
const msg_navigation_t* p = (const msg_navigation_t*) data;
struct tm t;
return wp;
}
-static waypoint*
+static Waypoint*
read_position(void)
{
- waypoint* wp;
+ Waypoint* wp;
message_t m;
message_init(&m);
}
}
-static waypoint*
+static Waypoint*
delbin_rd_position(posn_status* status)
{
return read_position();
static void
gpl_read(void)
{
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
route_head* track_head;
gpl_point_t gp;
double alt_feet;
track_add_head(track_head);
while (gbfread(&gp, sizeof(gp), 1, gplfile_in) > 0) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = le_read_double(&gp.lat);
wpt_tmp->longitude = le_read_double(&gp.lon);
alt_feet = le_read_double(&gp.alt);
}
static void
-gpl_trackpt(const waypoint* wpt)
+gpl_trackpt(const Waypoint* wpt)
{
double alt_feet = METERS_TO_FEET(wpt->altitude);
int status = 3;
/*-----------------------------------------------------------------------------*/
static garmin_fs_t*
-gmsd_init(waypoint* wpt)
+gmsd_init(Waypoint* wpt)
{
garmin_fs_t* gmsd = GMSD_FIND(wpt);
if (gmsd == NULL) {
static void
destinator_read_poi(void)
{
- waypoint* wpt;
+ Waypoint* wpt;
int count = 0;
gbfrewind(fin);
count++;
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->shortname = read_wcstr(0);
wpt->notes = read_wcstr(0); /* comment */
while (!(gbfeof(fin))) {
QString str;
- waypoint* wpt;
+ Waypoint* wpt;
if (count == 0) {
str = read_wcstr(0);
count++;
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->shortname = read_wcstr(0);
wpt->notes = read_wcstr(0);
gbfrewind(fin);
while (!(gbfeof(fin))) {
- waypoint* wpt;
+ Waypoint* wpt;
struct tm tm;
char buff[20];
int date;
break;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->longitude = gbfgetdbl(fin);
wpt->latitude = gbfgetdbl(fin);
/*-----------------------------------------------------------------------------*/
static void
-destinator_wpt_disp(const waypoint* wpt)
+destinator_wpt_disp(const Waypoint* wpt)
{
garmin_fs_t* gmsd = GMSD_FIND(wpt);
}
static void
-destinator_trkpt_disp(const waypoint* wpt)
+destinator_trkpt_disp(const Waypoint* wpt)
{
int i;
}
static void
-destinator_rtept_disp(const waypoint* wpt)
+destinator_rtept_disp(const Waypoint* wpt)
{
write_wcstr(DST_ITINERARY);
#if NEW_STRINGS
const int recordsizes[3] = {8, 20, 32};
int i, style, recsize;
int lat, lon, bintime, bindate;
- waypoint* wpt;
+ Waypoint* wpt;
/* the first record of each file is always full-sized; its style field
* determines the format of all subsequent records in the file */
track_add_head(*track);
}
- wpt = new waypoint;
+ wpt = new Waypoint;
latitude = bin2deg(lat);
if (latitude >= 100) {
manual_point = 1;
* Decide whether to keep or toss this point.
*/
static void
-fix_process_wpt(const waypoint* wpt)
+fix_process_wpt(const Waypoint* wpt)
{
int del = 0;
int delh = 0;
int delv = 0;
- waypoint* waypointp = (waypoint*) wpt;
+ Waypoint* waypointp = (Waypoint*) wpt;
if ((hdopf >= 0.0) && (waypointp->hdop > hdopf)) {
delh = 1;
static gbfile* fin, *fout;
static char* xmlbin;
-static waypoint* xmlwpt;
+static Waypoint* xmlwpt;
static route_head* xmltrk;
static QString xmlgrid;
static int xmldatum;
/* helpers */
static void
-convert_datum(waypoint* wpt, int datum)
+convert_datum(Waypoint* wpt, int datum)
{
if (datum != DATUM_WGS84) {
double lat = wpt->latitude;
static void
-finalize_pt(waypoint* wpt)
+finalize_pt(Waypoint* wpt)
{
if (xmlgrid == "BNG") {
GPS_Math_NGENToAiry1830LatLon(xmlEasting, xmlNorthing,
static void
tlog3b_xgcb_wptst(xg_string args, const QXmlStreamAttributes* unused)
{
- xmlwpt = new waypoint;
+ xmlwpt = new Waypoint;
xmldatum = DATUM_WGS84;
}
static void
tlog3b_xgcb_tptst(xg_string args, const QXmlStreamAttributes* unused)
{
- xmlwpt = new waypoint;
+ xmlwpt = new Waypoint;
xmldatum = DATUM_WGS84;
}
}
while (tcount > 0) {
- waypoint* wpt;
+ Waypoint* wpt;
tcount--;
datum = read_datum(fin);
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = gbfgetdbl(fin);
wpt->longitude = gbfgetdbl(fin);
}
while (! gbfeof(fin)) {
- waypoint* wpt;
+ Waypoint* wpt;
i = gbfgetc(fin);
if (i == 0) {
gbfungetc(i, fin);
datum = read_datum(fin);
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = gbfgetdbl(fin);
wpt->longitude = gbfgetdbl(fin);
datum = read_datum(fin);
while (wcount > 0) {
- waypoint* wpt;
+ Waypoint* wpt;
int32_t namect, i;
wcount--;
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = gbfgetdbl(fin);
wpt->longitude = gbfgetdbl(fin);
}
static void
-track_wpt_cb(const waypoint* wpt)
+track_wpt_cb(const Waypoint* wpt)
{
if (this_index != track_index) {
return;
}
static void
-wpt_cb(const waypoint* wpt)
+wpt_cb(const Waypoint* wpt)
{
int names;
typedef struct btree_node {
struct btree_node* left, *right;
unsigned long data;
- waypoint* wpt;
+ Waypoint* wpt;
} btree_node;
static btree_node*
}
typedef struct {
- waypoint* wpt;
+ Waypoint* wpt;
int index;
} wpt_ptr;
static void
duplicate_process(void)
{
- waypoint* waypointp;
+ Waypoint* waypointp;
btree_node* newnode, * btmp, * sup_tree = NULL;
btree_node* oldnode = NULL;
unsigned long crc = 0;
char lat[13];
char lon[13];
} dupe;
- waypoint* delwpt = NULL;
+ Waypoint* delwpt = NULL;
int i, ct = waypt_count();
wpt_ptr* htable, *bh;
i = 0;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- bh->wpt = (waypoint*) elem;
+ bh->wpt = (Waypoint*) elem;
bh->index = i;
i ++;
bh ++;
char ibuf[10];
do {
unsigned char tag;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
UrlLink link;
for (tag = gbfgetc(file_in); tag != 0xff; tag = gbfgetc(file_in)) {
static void
-ez_disp(const waypoint* wpt)
+ez_disp(const Waypoint* wpt)
{
gbfputc('W', file_out);
#if NEW_STRINGS
route_add_head(route);
while (1 == gbfread(&ewpt, sizeof(ewpt), 1, file_in)) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
wpt->latitude = enigmaPositionToDec(le_read32(&ewpt.latitude));
wpt->longitude = enigmaPositionToDec(le_read32(&ewpt.longitude));
char*sn = xstrndup(ewpt.shortname, ewpt.shortname_len);
#endif
static void
-enigma_waypt_disp(const waypoint* wpt)
+enigma_waypt_disp(const Waypoint* wpt)
{
struct enigma_wpt ewpt;
static gbfile* fin, *fout;
static queue exif_apps;
static exif_app_t* exif_app;
-const waypoint* exif_wpt_ref;
+const Waypoint* exif_wpt_ref;
time_t exif_time_ref;
static char exif_success;
static char* exif_fout_name;
return res.toTime_t();
}
-static waypoint*
+static Waypoint*
exif_waypt_from_exif_app(exif_app_t* app)
{
- waypoint* wpt;
+ Waypoint* wpt;
queue* elem, *tmp;
exif_ifd_t* ifd;
exif_tag_t* tag;
return NULL;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = unknown_alt;
wpt->longitude = unknown_alt;
}
static void
-exif_find_wpt_by_time(const waypoint* wpt)
+exif_find_wpt_by_time(const Waypoint* wpt)
{
if (!wpt->creation_time.isValid()) {
return;
}
static void
-exif_find_wpt_by_name(const waypoint* wpt)
+exif_find_wpt_by_name(const Waypoint* wpt)
{
if (exif_wpt_ref != NULL) {
return;
exif_read(void)
{
uint16_t soi;
- waypoint* wpt;
+ Waypoint* wpt;
soi = gbfgetuint16(fin);
is_fatal(soi != 0xFFD8, MYNAME ": Unknown image file."); /* only jpeg for now */
}
if (exif_wpt_ref != NULL) {
- const waypoint* wpt = exif_wpt_ref;
+ const Waypoint* wpt = exif_wpt_ref;
exif_put_long(IFD0, IFD0_TAG_GPS_IFD_OFFS, 0, 0);
exif_put_value(GPS_IFD, GPS_IFD_TAG_VERSION, EXIF_TYPE_BYTE, 4, 0, writer_gps_tag_version);
extern queue waypt_head;
#if NEWQ
-extern QList<waypoint*> waypt_list;
+extern QList<Waypoint*> waypt_list;
#endif
typedef struct filter_vecs {
#define WPT_cD_OFS 0x0cD00
static void
-parse_line(char* buff, int index, const char* delimiter, waypoint* wpt)
+parse_line(char* buff, int index, const char* delimiter, Waypoint* wpt)
{
char* cin;
garmin_fs_p gmsd = GMSD_FIND(wpt);
}
}
-static waypoint*
+static Waypoint*
parse_waypt(char* buff)
{
char* cin, *cerr;
int i;
struct tm tm;
- waypoint* wpt;
+ Waypoint* wpt;
garmin_fs_p gmsd;
- wpt = new waypoint;
+ wpt = new Waypoint;
gmsd = garmin_fs_alloc(-1);
fs_chain_add(&wpt->fs, (format_specific_data*) gmsd);
return wpt;
}
-static waypoint*
+static Waypoint*
parse_trkpt(char* buff)
{
garmin_fs_p gmsd;
- waypoint* wpt;
+ Waypoint* wpt;
- wpt = new waypoint;
+ wpt = new Waypoint;
gmsd = garmin_fs_alloc(-1);
fs_chain_add(&wpt->fs, (format_specific_data*) gmsd);
{
char* buff;
int line = 0;
- waypoint* wpt = NULL;
- waypoint* prev = NULL;
+ Waypoint* wpt = NULL;
+ Waypoint* prev = NULL;
route_head* head = NULL;
while ((buff = gbfgetstr(fin))) {
break;
case 'I': /* event point */
- wpt = new waypoint;
+ wpt = new Waypoint;
cdata += parse_coordinates(cdata, datum, grid,
&wpt->latitude, &wpt->longitude, MYNAME);
xasprintf(&wpt->shortname, "Event%d", ++event_ct);
GPS_PWay* way = NULL;
if (getposn) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
wpt->latitude = gps_save_lat;
wpt->longitude = gps_save_lon;
wpt->shortname = "Position";
}
for (i = 0; i < n; i++) {
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
wpt_tmp->shortname = way[i]->ident;
wpt_tmp->description = QString(way[i]->cmnt).simplified();
// returns 1 if the waypoint's start_time can be found
// in the laps array, 0 otherwise
-unsigned int checkWayPointIsAtSplit(waypoint* wpt, GPS_PLap* laps, int nlaps)
+unsigned int checkWayPointIsAtSplit(Waypoint* wpt, GPS_PLap* laps, int nlaps)
{
int result = 0;
}
for (i = 0; i < ntracks; i++) {
- waypoint* wpt;
+ Waypoint* wpt;
/*
* This is probably always in slot zero, but the Garmin
if (array[i]->no_latlon || array[i]->ishdr) {
continue;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->longitude = array[i]->lon;
wpt->latitude = array[i]->lat;
if (array[i]->islink) {
continue;
} else {
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
wpt_tmp->latitude = array[i]->lat;
wpt_tmp->longitude = array[i]->lon;
wpt_tmp->shortname = array[i]->ident;
return;
}
for (i = 0; i < ntracks; i++) {
- waypoint* wpt;
+ Waypoint* wpt;
if (array[i]->index == -1) {
index=i;
} else {
trk_head->rte_name = tbuf;
track_add_head(trk_head);
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->longitude = array[i]->begin_lon;
wpt->latitude = array[i]->begin_lat;
* continue;
* }
*/
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->longitude = array[i]->end_lon;
wpt->latitude = array[i]->end_lat;
* to the data type we use throughout. Yes, we do lose some data that way.
*/
static void
-pvt2wpt(GPS_PPvt_Data pvt, waypoint* wpt)
+pvt2wpt(GPS_PPvt_Data pvt, Waypoint* wpt)
{
double wptime, wptimes;
GPS_Command_Pvt_On(fname, &pvt_fd);
}
-static waypoint*
+static Waypoint*
pvt_read(posn_status* posn_status)
{
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
GPS_PPvt_Data pvt = GPS_Pvt_New();
if (GPS_Command_Pvt_Get(&pvt_fd, &pvt)) {
* description.
*/
const char*
-get_gc_info(waypoint* wpt)
+get_gc_info(Waypoint* wpt)
{
if (global_opts.smart_names) {
if (wpt->gc_data->type == gt_virtual) {
i = 0;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypoint* wpt;
+ Waypoint* wpt;
char* ident;
char obuf[256];
- wpt = (waypoint*) elem;
+ wpt = (Waypoint*) elem;
#if NEW_STRINGS
QString src;
if (!wpt->description.isEmpty()) {
}
static void
-route_waypt_pr(const waypoint* wpt)
+route_waypt_pr(const Waypoint* wpt)
{
GPS_PWay rte = *cur_tx_routelist_entry;
}
static void
-track_waypt_pr(const waypoint* wpt)
+track_waypt_pr(const Waypoint* wpt)
{
(*cur_tx_tracklist_entry)->lat = wpt->latitude;
(*cur_tx_tracklist_entry)->lon = wpt->longitude;
uint16_t power = 0xffff;
int8_t temperature = 0x7f;
int i;
- waypoint* waypt;
+ Waypoint* waypt;
if (global_opts.debug_level >= 7) {
debug_print(7,"%s: parsing fit data ID %d with num_fields=%d\n", MYNAME, def->global_id, def->num_fields);
break;
}
- waypt = new waypoint;
+ waypt = new Waypoint;
waypt->latitude = (lat / (double)0x7fffffff) * 180;
waypt->longitude = (lon / (double)0x7fffffff) * 180;
if (alt != 0xffff) {
/* GPX - out */
void
-garmin_fs_xml_fprint(const waypoint* waypt,
+garmin_fs_xml_fprint(const Waypoint* waypt,
QXmlStreamWriter* writer)
{
const char* phone, *addr;
}
void
-garmin_fs_xml_convert(const int base_tag, int tag, const QString& Qcdatastr, waypoint* waypt)
+garmin_fs_xml_convert(const int base_tag, int tag, const QString& Qcdatastr, Waypoint* waypt)
{
garmin_fs_t* gmsd;
// FIXME: eliminate C string copy/use here:
}
unsigned char
-garmin_fs_merge_category(const char* category_name, waypoint* waypt)
+garmin_fs_merge_category(const char* category_name, Waypoint* waypt)
{
uint16_t cat;
garmin_fs_t* gmsd;
}
void
-garmin_fs_garmin_after_read(const GPS_PWay way, waypoint* wpt, const int protoid)
+garmin_fs_garmin_after_read(const GPS_PWay way, Waypoint* wpt, const int protoid)
{
garmin_fs_t* gmsd = NULL;
}
void
-garmin_fs_garmin_before_write(const waypoint* wpt, GPS_PWay way, const int protoid)
+garmin_fs_garmin_before_write(const Waypoint* wpt, GPS_PWay way, const int protoid)
{
garmin_fs_t* gmsd = GMSD_FIND(wpt);
char* garmin_fs_xstrdup(const char* src, size_t size);
/* for GPX */
-void garmin_fs_xml_convert(const int base_tag, int tag, const QString& cdatastr, waypoint* waypt);
+void garmin_fs_xml_convert(const int base_tag, int tag, const QString& cdatastr, Waypoint* waypt);
class QXmlStreamWriter;
-void garmin_fs_xml_fprint(const waypoint* waypt, QXmlStreamWriter*);
+void garmin_fs_xml_fprint(const Waypoint* waypt, QXmlStreamWriter*);
/* common garmin_fs utilities */
unsigned char garmin_fs_convert_category(const char* category_name, uint16_t* category);
/* ..merge_category: returns 1=OK; 0=Unable to convert category */
-unsigned char garmin_fs_merge_category(const char* category_name, waypoint* waypt);
+unsigned char garmin_fs_merge_category(const char* category_name, Waypoint* waypt);
#define GMSD_SECTION_CATEGORIES "Garmin Categories"
-void garmin_fs_garmin_after_read(const GPS_PWay way, waypoint* wpt, const int protoid);
-void garmin_fs_garmin_before_write(const waypoint* wpt, GPS_PWay way, const int protoid);
+void garmin_fs_garmin_after_read(const GPS_PWay way, Waypoint* wpt, const int protoid);
+void garmin_fs_garmin_before_write(const Waypoint* wpt, GPS_PWay way, const int protoid);
#endif
/* look for or initialize GMSD */
static garmin_fs_t*
-gpi_gmsd_init(waypoint* wpt)
+gpi_gmsd_init(Waypoint* wpt)
{
garmin_fs_t* gmsd = GMSD_FIND(wpt);
if (wpt == NULL) {
}
/* gpi tag handler */
-static int read_tag(const char* caller, const int tag, waypoint* wpt);
+static int read_tag(const char* caller, const int tag, Waypoint* wpt);
/* read a single poi with all options */
read_poi(const int sz, const int tag)
{
int pos, len;
- waypoint* wpt;
+ Waypoint* wpt;
#ifdef GPI_DBG
PP;
(void) len;
pos = gbftell(fin);
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->icon_descr = DEFAULT_ICON;
wpt->latitude = GPS_Math_Semi_To_Deg(gbfgetint32(fin));
// length field)
/* gpi tag handler */
static int
-read_tag(const char* caller, const int tag, waypoint* wpt)
+read_tag(const char* caller, const int tag, Waypoint* wpt)
{
int pos, sz, dist;
double speed;
static int
compare_wpt_cb(const queue* a, const queue* b)
{
- const waypoint* wa = (waypoint*) a;
- const waypoint* wb = (waypoint*) b;
+ const Waypoint* wa = (Waypoint*) a;
+ const Waypoint* wb = (Waypoint*) b;
#if NEW_STRINGS
return wa->shortname.compare(wb->shortname);
#else
queue* elem, *tmp;
QUEUE_FOR_EACH(&data->Q, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (wpt->extra_data) {
gpi_waypt_t* dt = (gpi_waypt_t*) wpt->extra_data;
static void
-wdata_add_wpt(writer_data_t* data, waypoint* wpt)
+wdata_add_wpt(writer_data_t* data, Waypoint* wpt)
{
data->ct++;
ENQUEUE_TAIL(&data->Q, &wpt->Q);
center_lat = center_lon = 0;
QUEUE_FOR_EACH(&data->Q, elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
center_lat += wpt->latitude;
center_lon += wpt->longitude;
}
center_lon /= data->ct;
QUEUE_FOR_EACH(&data->Q, elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
writer_data_t** ref;
if (wpt->latitude < center_lat) {
res = 23; /* bounds, ... of tag 0x80008 */
QUEUE_FOR_EACH(&data->Q, elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
gpi_waypt_t* dt;
garmin_fs_t* gmsd;
QString str;
QUEUE_FOR_EACH(&data->Q, elem, tmp) {
QString str;
int s0, s1;
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
gpi_waypt_t* dt = (gpi_waypt_t*) wpt->extra_data;
str = wpt->description;
static void
-enum_waypt_cb(const waypoint* ref)
+enum_waypt_cb(const Waypoint* ref)
{
- waypoint* wpt;
+ Waypoint* wpt;
queue* elem, *tmp;
QUEUE_FOR_EACH(&wdata->Q, elem, tmp) {
- waypoint* cmp = (waypoint*) elem;
+ Waypoint* cmp = (Waypoint*) elem;
/* sort out nearly equal waypoints */
if ((compare_strings(cmp->shortname, ref->shortname) == 0) &&
}
}
- wpt = new waypoint(*ref);
+ wpt = new Waypoint(*ref);
if (*opt_unique == '1') {
#if NEW_STRINGS
static route_head* current_trk, *current_rte;
static int waypoints;
static int routepoints;
-static waypoint** wpt_a;
+static Waypoint** wpt_a;
static int wpt_a_ct;
static grid_type grid_index;
static int datum_index;
double speed;
double total;
int count;
- waypoint* prev_wpt;
- waypoint* first_wpt;
- waypoint* last_wpt;
+ Waypoint* prev_wpt;
+ Waypoint* first_wpt;
+ Waypoint* last_wpt;
} info_t;
static info_t* route_info;
}
static void
-convert_datum(const waypoint* wpt, double* dest_lat, double* dest_lon)
+convert_datum(const Waypoint* wpt, double* dest_lat, double* dest_lon)
{
double alt;
/* Waypoint preparation */
static void
-enum_waypt_cb(const waypoint* wpt)
+enum_waypt_cb(const Waypoint* wpt)
{
garmin_fs_p gmsd;
int wpt_class;
return;
}
for (i = 0; i < wpt_a_ct; i++) { /* check for duplicates */
- waypoint* tmp = wpt_a[i];
+ Waypoint* tmp = wpt_a[i];
if (case_ignore_strcmp(tmp->shortname, wpt->shortname) == 0) {
- wpt_a[i] = (waypoint*)wpt;
+ wpt_a[i] = (Waypoint*)wpt;
waypoints--;
return;
}
}
- wpt_a[wpt_a_ct++] = (waypoint*)wpt;
+ wpt_a[wpt_a_ct++] = (Waypoint*)wpt;
}
}
static int
sort_waypt_cb(const void* a, const void* b)
{
- const waypoint* wa = *(waypoint**)a;
- const waypoint* wb = *(waypoint**)b;
+ const Waypoint* wa = *(Waypoint**)a;
+ const Waypoint* wb = *(Waypoint**)b;
#if NEW_STRINGS
return wa->shortname.compare(wb->shortname, Qt::CaseInsensitive);
#else
}
static void
-prework_wpt_cb(const waypoint* wpt)
+prework_wpt_cb(const Waypoint* wpt)
{
- waypoint* prev = cur_info->prev_wpt;
+ Waypoint* prev = cur_info->prev_wpt;
if (prev != NULL) {
cur_info->time += (wpt->GetCreationTime().toTime_t() - prev->GetCreationTime().toTime_t());
cur_info->length += waypt_distance_ex(prev, wpt);
} else {
- cur_info->first_wpt = (waypoint*)wpt;
+ cur_info->first_wpt = (Waypoint*)wpt;
cur_info->start = wpt->GetCreationTime().toTime_t();
}
- cur_info->prev_wpt = (waypoint*)wpt;
+ cur_info->prev_wpt = (Waypoint*)wpt;
cur_info->count++;
routepoints++;
}
/* output helpers */
static void
-print_position(const waypoint* wpt)
+print_position(const Waypoint* wpt)
{
int valid = 1;
double lat, lon, north, east;
}
static void
-print_course(const waypoint* A, const waypoint* B) /* seems to be okay */
+print_course(const Waypoint* A, const Waypoint* B) /* seems to be okay */
{
if ((A != NULL) && (B != NULL) && (A != B)) {
int course;
/* main cb's */
static void
-write_waypt(const waypoint* wpt)
+write_waypt(const Waypoint* wpt)
{
unsigned char wpt_class;
garmin_fs_p gmsd;
}
static void
-route_disp_wpt_cb(const waypoint* wpt)
+route_disp_wpt_cb(const Waypoint* wpt)
{
- waypoint* prev = cur_info->prev_wpt;
+ Waypoint* prev = cur_info->prev_wpt;
gbfprintf(fout, "Route Waypoint\t");
gbfprintf(fout, "%s\t", CSTRc(wpt->shortname));
gbfprintf(fout, "\r\n");
- cur_info->prev_wpt = (waypoint*)wpt;
+ cur_info->prev_wpt = (Waypoint*)wpt;
}
static void
}
static void
-track_disp_wpt_cb(const waypoint* wpt)
+track_disp_wpt_cb(const Waypoint* wpt)
{
- waypoint* prev = cur_info->prev_wpt;
+ Waypoint* prev = cur_info->prev_wpt;
time_t delta;
double dist, depth;
}
gbfprintf(fout, "\r\n");
- cur_info->prev_wpt = (waypoint*)wpt;
+ cur_info->prev_wpt = (Waypoint*)wpt;
}
/*******************************************************************************
int i;
wpt_a_ct = 0;
- wpt_a = (waypoint**)xcalloc(waypoints, sizeof(*wpt_a));
+ wpt_a = (Waypoint**)xcalloc(waypoints, sizeof(*wpt_a));
waypt_disp_all(enum_waypt_cb);
route_disp_all(NULL, NULL, enum_waypt_cb);
qsort(wpt_a, waypoints, sizeof(*wpt_a), sort_waypt_cb);
gbfprintf(fout, "Header\t%s\r\n\r\n", headers[waypt_header]);
for (i = 0; i < waypoints; i++) {
- waypoint* wpt = wpt_a[i];
+ Waypoint* wpt = wpt_a[i];
write_waypt(wpt);
}
xfree(wpt_a);
{
char* str;
int column = -1;
- waypoint* wpt;
+ Waypoint* wpt;
garmin_fs_p gmsd = NULL;
bind_fields(waypt_header);
- wpt = new waypoint;
+ wpt = new Waypoint;
gmsd = garmin_fs_alloc(-1);
fs_chain_add(&wpt->fs, (format_specific_data*) gmsd);
{
char* str;
int column = -1;
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
bind_fields(rtept_header);
is_fatal((*str == '\0'), MYNAME ": Route waypoint without name at line %d!\n", current_line);
wpt = find_waypt_by_name(str);
is_fatal((wpt == NULL), MYNAME ": Route waypoint \"%s\" not in waypoint list (line %d)!\n", str, current_line);
- wpt = new waypoint(*wpt);
+ wpt = new Waypoint(*wpt);
break;
}
}
{
char* str;
int column = -1;
- waypoint* wpt;
+ Waypoint* wpt;
bind_fields(trkpt_header);
- wpt = new waypoint;
+ wpt = new Waypoint;
while ((str = csv_lineparse(NULL, "\t", "", column++))) {
int field_no;
// Process all tracks one by one
while ((TracksCompleted < NumberOfTracks) && (!gbfeof(fin))) {
route_head* tmp_track;
- waypoint* wpt;
+ Waypoint* wpt;
char* trk_name;
trk_name = (char*) xmalloc(30);
// Add point to the track if not the first point
if (!FirstCoo) {
//create new waypoint
- wpt = new waypoint;
+ wpt = new Waypoint;
//populate wpt;
wpt->latitude = PrevLat; /* Degrees */
format_garmin_xt_decomp_last_ele(Count, &PrevEle, TrackBlock);
//create new waypoint
- wpt = new waypoint;
+ wpt = new Waypoint;
//populate wpt;
wpt->latitude = PrevLat; /* Degrees */
uint32_t Lat=0, Lon=0;
uint32_t Tim=0;
double LatF = 0, LonF = 0, AltF = 0;
- waypoint* wpt;
+ Waypoint* wpt;
int method = 0;
unsigned char buf[3];
int32_t num_trackpoints;
AltF = (double)uu * GARMIN_XT_ELE - 1500;
//create new waypoint
- wpt = new waypoint;
+ wpt = new Waypoint;
//populate wpt;
wpt->latitude = LatF*180/16777216; /* Degrees */
queue* elem, *tmp;
QUEUE_FOR_EACH(Q, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
dequeue(elem);
if (wpt->extra_data) {
#if NEW_STRINGS
return qres;
}
-static waypoint*
-gdb_find_wayptq(const queue* Q, const waypoint* wpt, const char exact)
+static Waypoint*
+gdb_find_wayptq(const queue* Q, const Waypoint* wpt, const char exact)
{
queue* elem, *tmp;
#if NEW_STRINGS
#endif
QUEUE_FOR_EACH(Q, elem, tmp) {
- waypoint* tmp = (waypoint*)elem;
+ Waypoint* tmp = (Waypoint*)elem;
#if NEW_STRINGS
if (name.compare(tmp->shortname,Qt::CaseInsensitive) == 0) {
#else
return NULL;
}
-static waypoint*
-gdb_reader_find_waypt(const waypoint* wpt, const char exact)
+static Waypoint*
+gdb_reader_find_waypt(const Waypoint* wpt, const char exact)
{
- waypoint* res;
+ Waypoint* res;
res = gdb_find_wayptq(&wayptq_in, wpt, exact);
if (res == NULL) {
res = gdb_find_wayptq(&wayptq_in_hidden, wpt, exact);
return res;
}
-static waypoint*
-gdb_add_route_waypt(route_head* rte, waypoint* ref, const int wpt_class)
+static Waypoint*
+gdb_add_route_waypt(route_head* rte, Waypoint* ref, const int wpt_class)
{
- waypoint* tmp, *res;
+ Waypoint* tmp, *res;
int turn_point;
tmp = gdb_reader_find_waypt(ref, 1);
turn_point = (gdb_roadbook && (wpt_class > gt_waypt_class_map_point) && tmp->description);
#endif
if (turn_point || (gdb_via == 0) || (wpt_class < gt_waypt_class_map_point)) {
- res = new waypoint(*tmp);
+ res = new Waypoint(*tmp);
route_add_wpt(rte, res);
}
delete ref;
/*-----------------------------------------------------------------------------*/
-static waypoint*
+static Waypoint*
read_waypoint(gt_waypt_classes_e* waypt_class_out)
{
char buf[128]; /* used for temporary stuff */
int display, icon, dynamic;
gt_waypt_classes_e wpt_class;
int i;
- waypoint* res;
+ Waypoint* res;
garmin_fs_t* gmsd;
char* str;
char* bufp = buf;
char* sn;
#endif
waypt_ct++;
- res = new waypoint;
+ res = new Waypoint;
gmsd = garmin_fs_alloc(-1);
fs_chain_add(&res->fs, (format_specific_data*) gmsd);
char buf[128];
garmin_ilink_t* il_root, *il_anchor;
- waypoint* wpt;
+ Waypoint* wpt;
- wpt = new waypoint;
+ wpt = new Waypoint;
rtept_ct++;
wpt->shortname = fread_cstr(); /* shortname */
if (links == 0) {
/* Without links we need all informations from wpt */
- waypoint* tmp = gdb_reader_find_waypt(wpt, 0);
+ Waypoint* tmp = gdb_reader_find_waypt(wpt, 0);
if (tmp != NULL) {
delete wpt;
- wpt = new waypoint(*tmp);
+ wpt = new Waypoint(*tmp);
} else {
if (waypt_bounds_valid(&bounds)) {
warning(MYNAME ": (has bounds)\n");
points = FREAD_i32;
for (index = 0; index < points; index++) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
trkpt_ct++;
int len, delta;
char typ, dump;
gt_waypt_classes_e wpt_class;
- waypoint* wpt;
+ Waypoint* wpt;
route_head* trk, *rte;
len = FREAD_i32;
case 'W':
wpt = read_waypoint(&wpt_class);
if ((gdb_via == 0) || (wpt_class == 0)) {
- waypoint* dupe;
+ Waypoint* dupe;
waypt_add(wpt);
- dupe = new waypoint(*wpt);
+ dupe = new Waypoint(*wpt);
ENQUEUE_TAIL(&wayptq_in, &dupe->Q);
} else {
ENQUEUE_TAIL(&wayptq_in_hidden, &wpt->Q);
*/
static void
-gdb_check_waypt(waypoint* wpt)
+gdb_check_waypt(Waypoint* wpt)
{
double lat_orig = wpt->latitude;
double lon_orig = wpt->longitude;
static void
write_waypoint(
#if NEW_STRINGS
- const waypoint* wpt, const QString& shortname, garmin_fs_t* gmsd,
+ const Waypoint* wpt, const QString& shortname, garmin_fs_t* gmsd,
#else
- const waypoint* wpt, const char* shortname, garmin_fs_t* gmsd,
+ const Waypoint* wpt, const char* shortname, garmin_fs_t* gmsd,
#endif
const int icon, const int display)
{
queue* elem, *tmp;
waypt_init_bounds(bounds);
QUEUE_FOR_EACH((queue*)&rte->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
gdb_check_waypt(wpt);
waypt_add_to_bounds(bounds, wpt);
}
QUEUE_FOR_EACH((queue*)&rte->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
- waypoint* next = (waypoint*)tmp;
- waypoint* test;
+ Waypoint* wpt = (Waypoint*)elem;
+ Waypoint* next = (Waypoint*)tmp;
+ Waypoint* test;
garmin_fs_t* gmsd = NULL;
int wpt_class;
QUEUE_FOR_EACH((queue*)&trk->waypoint_list, elem, tmp) {
double d;
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
trkpt_ct++; /* increase informational number of written route points */
#endif
static void
-write_waypoint_cb(const waypoint* refpt)
+write_waypoint_cb(const Waypoint* refpt)
{
garmin_fs_t* gmsd;
- waypoint* test;
+ Waypoint* test;
gbfile* fsave;
/* do this when backup always happens in main */
#if NEW_STRINGS
// but, but, casting away the const here is wrong...
- ((waypoint*)refpt)->shortname = refpt->shortname.trimmed();
+ ((Waypoint*)refpt)->shortname = refpt->shortname.trimmed();
#else
- rtrim(((waypoint*)refpt)->shortname);
+ rtrim(((Waypoint*)refpt)->shortname);
#endif
test = gdb_find_wayptq(&wayptq_out, refpt, 1);
#else
char* name;
#endif
- waypoint* wpt = new waypoint(*refpt);
+ Waypoint* wpt = new Waypoint(*refpt);
gdb_check_waypt(wpt);
ENQUEUE_TAIL(&wayptq_out, &wpt->Q);
void GeoReadLoc()
{
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
QString current_tag;
while (!reader.atEnd()) {
current_tag.append("/");
current_tag.append(tag_name);
if (current_tag == "/loc/waypoint") {
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->AllocGCData();
// There is no 'unknown' alt value and so many reference files have
// leaked it that we just paper over that here.
}
static void
-geo_waypt_pr(const waypoint* waypointp)
+geo_waypt_pr(const Waypoint* waypointp)
{
writer.writeStartElement("waypoint");
double xlat, xlon;
float sec;
struct tm tm;
- waypoint* wpt;
+ Waypoint* wpt;
if (len != bufsz) {
break;
memset(&tm, 0, sizeof(tm));
- wpt = new waypoint;
+ wpt = new Waypoint;
deg = (int16_t) le_read16(&buf[0]);
min = le_read16(&buf[2]);
ggv_log_track_head_cb(const route_head* trk)
{
queue* elem, *tmp;
- waypoint* prev = NULL;
+ Waypoint* prev = NULL;
QUEUE_FOR_EACH((queue*)&trk->waypoint_list, elem, tmp) {
double latmin, lonmin, latsec, lonsec;
int latint, lonint;
double course = 0, speed = 0;
struct tm tm;
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
double secs = 0;
latint = wpt->latitude;
switch (type) {
char coord[32];
- waypoint* wpt;
+ Waypoint* wpt;
char* cx;
int group;
for (j = 0; j < points; j++) {
- wpt = new waypoint;
+ wpt = new Waypoint;
snprintf(coord, sizeof(coord), "YKoord%d", j);
if ((cx = inifile_readstr(inifile, symbol, coord))) {
case OVL_SYMBOL_CIRCLE:
case OVL_SYMBOL_TRIANGLE:
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->shortname = symbol;
if ((cx = inifile_readstr(inifile, symbol, "YKoord"))) {
/* prototypes used in main functions */
-static void waypt_disp_cb(const waypoint* wpt);
+static void waypt_disp_cb(const Waypoint* wpt);
static void track_disp_cb(const route_head* trk);
static void route_disp_cb(const route_head* rte);
static void write_bounds(void);
-static void draw_symbol_basics(const OVL_SYMBOL_TYP typ, const int art, const OVL_COLOR_TYP color, const waypoint* wpt);
-static int get_direction(const waypoint* A, const waypoint* B);
+static void draw_symbol_basics(const OVL_SYMBOL_TYP typ, const int art, const OVL_COLOR_TYP color, const Waypoint* wpt);
+static int get_direction(const Waypoint* A, const Waypoint* B);
// static void draw_symbol_text(const char *text, const waypoint *reference);
/* -----------------------------------------------------------------------*/
/**************************************************************************/
static void
-waypt_disp_cb(const waypoint* wpt)
+waypt_disp_cb(const Waypoint* wpt)
{
draw_symbol_basics(OVL_SYMBOL_CIRCLE, 1, color, wpt);
gbfprintf(fout, "Width=20\n");
QUEUE_FOR_EACH(&(trk->waypoint_list), elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
gbfprintf(fout, "XKoord%d=%0.8f\n", i, wpt->longitude);
gbfprintf(fout, "YKoord%d=%0.8f\n", i, wpt->latitude);
{
int i;
queue* elem, *tmp;
- waypoint* prev;
+ Waypoint* prev;
int waypt_ct = rte->rte_waypt_ct;
if (waypt_ct <= 0) {
QUEUE_FOR_EACH(&(rte->waypoint_list), elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
if (prev != NULL) {
draw_symbol_basics(OVL_SYMBOL_TRIANGLE, 1, (OVL_COLOR_TYP)9 /* color */, prev);
/* -----------------------------------------------------------------------*/
static void
-waypt_bound_calc(const waypoint* waypointp)
+waypt_bound_calc(const Waypoint* waypointp)
{
waypt_add_to_bounds(&all_bounds, waypointp);
}
}
static void
-draw_symbol_basics(const OVL_SYMBOL_TYP typ, const int art, const OVL_COLOR_TYP color, const waypoint* wpt)
+draw_symbol_basics(const OVL_SYMBOL_TYP typ, const int art, const OVL_COLOR_TYP color, const Waypoint* wpt)
{
symbol_ct++;
/* the following code comes from first overlay module */
static int
-get_direction(const waypoint* A, const waypoint* B)
+get_direction(const Waypoint* A, const Waypoint* B)
{
double lata, lona, latb, lonb;
double dist, dir;
#if 0
static void
-draw_symbol_text(const char* text, const waypoint* reference)
+draw_symbol_text(const char* text, const Waypoint* reference)
{
- waypoint wpt;
+ Waypoint wpt;
if ((reference == NULL) || (text == NULL)) {
return;
static QString ostring;
static QXmlStreamWriter writer(&ostring);
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static route_head* trk_head;
#define MYNAME "glogbook"
}
static void
-glogbook_waypt_pr(const waypoint* wpt)
+glogbook_waypt_pr(const Waypoint* wpt)
{
writer.writeStartElement("Trackpoint");
void gl_trk_pnt_s(xg_string args, const QXmlStreamAttributes* unused)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
void gl_trk_pnt_e(xg_string args, const QXmlStreamAttributes* unused)
while (! gbfeof(fin)) {
gnav_trl_t rec;
- waypoint* wpt;
+ Waypoint* wpt;
if (gbfread(&rec, sizeof(rec), 1, fin) != 1) {
fatal(MYNAME ": Unexpected EOF (end of file)!\n");
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->SetCreationTime(le_read32(&rec.time));
wpt->latitude = le_read_float(&rec.lat);
}
static void
-gnav_trl_write_trkpt(const waypoint* wpt)
+gnav_trl_write_trkpt(const Waypoint* wpt)
{
gnav_trl_t rec;
void goog_segment(xg_string args, const QXmlStreamAttributes* unused)
{
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
wpt_tmp = route_find_waypt_by_name(routehead[goog_segroute], goog_segname);
if (wpt_tmp) {
}
{
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
wpt_tmp->latitude = lat / 100000.0;
wpt_tmp->longitude = lon / 100000.0;
wpt_tmp->route_priority=level;
lon += decode_goog64(&str);
{
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
wpt_tmp->latitude = lat / 100000.0;
wpt_tmp->longitude = lon / 100000.0;
/* FIXME no need for name
/*
- Copyright (C) 2008 Dr. Jürgen Neumann, Juergen.Neumann@online.de
+ Copyright (C) 2008 Dr. J�rgen Neumann, Juergen.Neumann@online.de
Copyright (C) 2005 Robert Lipe, robertlipe@usa.net (based on nmea.c)
Copyright (C) 20XX probably many others from the gpsbabel development team ;-)
double hmsd,speed;
int fix, hms;
route_head* route;
- waypoint* wpt, *lastwpt=NULL;
+ Waypoint* wpt, *lastwpt=NULL;
double long_old,lat_old;
char tbuffer[64];
struct tm tm2;
if ((nfields == 8) && (tx == 0)) {
// fatal(MYNAME ": Invalid date in filename \"%s\", try to set manually using \"date\" switch!\n", buff);
}
- wpt = new waypoint;
+ wpt = new Waypoint;
column = -1;
// the format of gopal is quite simple. Unfortunately the developers forgot the date as the first element...
long_old=wpt->longitude;
lat_old=wpt->latitude;
route_add_wpt(route,wpt);
- waypt_add(new waypoint(*wpt));
+ waypt_add(new Waypoint(*wpt));
}
}
}
}
static void
-gopal_write_waypt(const waypoint* wpt)
+gopal_write_waypt(const Waypoint* wpt)
{
char tbuffer[64];
unsigned long timestamp;
}
static void
-gpssim_write_pt(const waypoint* wpt)
+gpssim_write_pt(const Waypoint* wpt)
{
char obuf[1024];
double lat, lon;
long alt;
char alttype;
char icon[3];
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int line = 0;
/*
* Make sure that all waypoints in single read have same
rtrim(sn);
rtrim(desc);
rtrim(icon);
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->altitude = alt;
wpt_tmp->shortname = sn;
xfree(sn);
}
static void
-gpsutil_disp(const waypoint* wpt)
+gpsutil_disp(const Waypoint* wpt)
{
double lon,lat;
QString icon_token;
static QString current_tag;
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static UrlLink* link_;
static int cache_descr_is_html;
static gpsbabel::File* iqfile;
static void
tag_wpt(const QXmlStreamAttributes& attr)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
link_ = new UrlLink;
cur_tag = NULL;
tag_log_wpt(const QXmlStreamAttributes& attr)
{
/* create a new waypoint */
- waypoint* lwp_tmp = new waypoint;
+ Waypoint* lwp_tmp = new Waypoint;
/* extract the lat/lon attributes */
if (attr.hasAttribute("lat")) {
}
static void
-fprint_xml_chain(xml_tag* tag, const waypoint* wpt)
+fprint_xml_chain(xml_tag* tag, const Waypoint* wpt)
{
while (tag) {
writer->writeStartElement(tag->tagname);
* Handle the grossness of GPX 1.0 vs. 1.1 handling of linky links.
*/
static void
-write_gpx_url(const waypoint* waypointp)
+write_gpx_url(const Waypoint* waypointp)
{
if (!waypointp->HasUrlLink()) {
return;
* Order counts.
*/
static void
-gpx_write_common_acc(const waypoint* waypointp)
+gpx_write_common_acc(const Waypoint* waypointp)
{
const char* fix = NULL;
static void
-gpx_write_common_position(const waypoint* waypointp)
+gpx_write_common_position(const Waypoint* waypointp)
{
if (waypointp->altitude != unknown_alt) {
writer->writeTextElement("ele", QString::number(waypointp->altitude, 'f', 6));
}
static void
-gpx_write_common_extensions(const waypoint* waypointp, const gpx_point_type point_type)
+gpx_write_common_extensions(const Waypoint* waypointp, const gpx_point_type point_type)
{
// gpx version we are writing is >= 1.1.
if ((opt_humminbirdext && (WAYPT_HAS(waypointp, depth) || WAYPT_HAS(waypointp, temperature))) ||
}
static void
-gpx_write_common_description(const waypoint* waypointp, QString oname)
+gpx_write_common_description(const Waypoint* waypointp, QString oname)
{
writer->writeOptionalTextElement("name", oname);
}
static void
-gpx_waypt_pr(const waypoint* waypointp)
+gpx_waypt_pr(const Waypoint* waypointp)
{
QString oname;
fs_xml* fs_gpx;
}
static void
-gpx_track_disp(const waypoint* waypointp)
+gpx_track_disp(const Waypoint* waypointp)
{
fs_xml* fs_gpx;
int first_in_trk;
}
static void
-gpx_route_disp(const waypoint* waypointp)
+gpx_route_disp(const Waypoint* waypointp)
{
#if NEW_STRINGS
QString oname;
}
static void
-gpx_waypt_bound_calc(const waypoint* waypointp)
+gpx_waypt_bound_calc(const Waypoint* waypointp)
{
waypt_add_to_bounds(&all_bounds, waypointp);
}
gbfclose(file_in);
}
-static void count_route_waypts(const waypoint* wpt)
+static void count_route_waypts(const Waypoint* wpt)
{
rt_count++;
}
-static void count_track_waypts(const waypoint* wpt)
+static void count_track_waypts(const Waypoint* wpt)
{
tr_count++;
}
route_head* first_trk_head = NULL;
route_head* trk_head = NULL;
route_head* rte_head = NULL;
- waypoint* wpt;
+ Waypoint* wpt;
int real_tr_count = 0;
unsigned int icon;
int i;
/* Waypoints */
for (i = 0; i != wp_count; i++) {
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = fread_double(file_in);
wpt->longitude = fread_double(file_in);
convert_datum(&wpt->latitude, &wpt->longitude);
/* Tracklogs */
for (i = 0; i != tr_count; i++) {
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = fread_double(file_in);
wpt->longitude = fread_double(file_in);
convert_datum(&wpt->latitude, &wpt->longitude);
/* Routes */
for (i = 0; i != rt_count; i++) {
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = fread_double(file_in);
wpt->longitude = fread_double(file_in);
convert_datum(&wpt->latitude, &wpt->longitude);
return 48;
}
-static void write_waypt(const waypoint* wpt)
+static void write_waypt(const Waypoint* wpt)
{
fwrite_double(file_out, wpt->latitude);
fwrite_double(file_out, wpt->longitude);
start_new = 1;
}
-static void write_trk_waypt(const waypoint* wpt)
+static void write_trk_waypt(const Waypoint* wpt)
{
fwrite_double(file_out, wpt->latitude);
fwrite_double(file_out, wpt->longitude);
fwrite_integer(file_out, 0);
}
-static void write_rte_waypt(const waypoint* wpt)
+static void write_rte_waypt(const Waypoint* wpt)
{
fwrite_double(file_out, wpt->latitude);
fwrite_double(file_out, wpt->longitude);
static gbfile* ofd;
static int lap_ct = 0;
static int lap_s = 0;
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static route_head* trk_head;
static computed_trkdata* tdata;
}
static void
-gtc_study_lap(const waypoint* wpt)
+gtc_study_lap(const Waypoint* wpt)
{
if (wpt->creation_time.isValid() && (!gtc_least_time.isValid())) {
gtc_least_time = wpt->GetCreationTime();
}
static void
-gtc_waypt_pr(const waypoint* wpt)
+gtc_waypt_pr(const Waypoint* wpt)
{
if (wpt->wpt_flags.is_split != 0) {
gtc_write_xml(1, "<Trackpoint split=\"yes\">\n");
void
gtc_trk_pnt_s(xg_string unused, const QXmlStreamAttributes* unusedattrs)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
void
/* Add the first point of an ActivityLap as
a waypoint as well as a trackpoint. */
char cbuf[10];
- waypoint* wpt_lap_s = new waypoint(*wpt_tmp);
+ Waypoint* wpt_lap_s = new Waypoint(*wpt_tmp);
snprintf(cbuf, sizeof(cbuf), "LAP%03d", lap_ct);
wpt_lap_s->shortname = cbuf;
waypt_add(wpt_lap_s);
gtc_wpt_crs_s(const char* unused, const QXmlStreamAttributes* unusedattrs)
#endif
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
void
void
gtc_wpt_pnt_s(xg_string unused, const QXmlStreamAttributes* unusedattrs)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
lap_ct++;
}
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation type="unfinished"></translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation>Originaldatei wählen</translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation>Zieldatei wählen</translation>
</message>
<context>
<name>MainWindow</name>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation>default</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation>eine oder mehrere Originaldateien markieren</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation>Zieldatei-Name</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
Das Programm muss abgebrochen werden.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
Das Prgramm muss abgebrochen werden.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation>Keine Unterstützung für %1 im Ein- oder Ausgabeformat</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation>Keine Unterstützung für %1 im Eingabeformat; Ausgabeformat unterstützt %2</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation>Eingabeformat unterstützt %1. Keine Unterstützung für %2 im Ausgabeformat</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation>Ein- und Ausgabeformat unterstützen %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation>Wegpunkte</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation>tracks</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation>Routen</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation>Es gibt keine Eingabeoptionen für das Format "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation>Optionen für %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation>Es gibt keine Ausgabeoptionen für das Format "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation>keine gültige Angabe von Wegpunkt-/Routen-/Trackfiltern</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation>keine Quelldatei angegeben</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation>keine gültiges Ziel angegeben</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation>keine Zieldatei angegeben</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation>Prozess "%1" wurde nicht gestartet</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation>Prozess endete mit code %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation>Konvertierung erfolgreich</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation>Fehler beim Aufruf von gpsbabel: %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation>Sind Sie sicher, dass Sie alle Formatoptionen auf die Vorgaben stellen wollen?</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation>Über %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation>Einer oder mehrere Datenfilter sind aktiviert</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation>Keine Datenfilter sind aktiv</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation>Datei</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation>Gerät</translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation>Format</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translation>Gerätename:</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation>Optionen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation>Übersetzungsoptionen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation>-</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translatorcomment>no sentence</translatorcomment>
<translation>bei Auswahl: übersetzen von Wegpunkten</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation>Wegpunkte</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translatorcomment>no sentence</translatorcomment>
<translation>bei Auswahl: übersetzen von Routen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation>Routen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translatorcomment>no sentence</translatorcomment>
<translation>bei Auswahl: übersetzen von Tracks</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation>Tracks</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation>Datenfilter zwischen Ein- und Ausgabe</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translation>Filter</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translatorcomment>no sentence</translatorcomment>
<translation>weitere Übersetzungsoptionen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translation>weitere Optionen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation>Ausgabe</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation>Wenn markiert, geht die Ausgabe in eine Datei.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation>Wenn markiert, geht die Ausgabe in eine Gerät oder eine GPS-Einheit</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translatorcomment>no sentence</translatorcomment>
<translation>Ausgabeformat</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translatorcomment>alt.: Codepage der Ausgabe</translatorcomment>
<translation>Zeichenkodierung der Ausgabe</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translatorcomment>no sentence</translatorcomment>
<translation>Suchen nach Zieldatei-Namen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation>Dateiname</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation>Name der Schnittstelle, an die das Ausgabegerät angeschlossen ist</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translatorcomment>no sentence</translatorcomment>
<translation>Optionen für das gewählte Ausgabeformat</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translatorcomment>no sentence</translatorcomment>
<translation>Ausgabe des GPSBabel Übersetzungsprozesses</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation>Hilfe</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translation>GPSBabel Hilfe</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation>Über GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation>Beenden</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translatorcomment>Via Google Translate</translatorcomment>
<translation>Einstellungen ...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation>Nach Upgrade suchen</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation>Webseite besuchen ...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation>Spenden Sie...</translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation>Hilfe</translation>
</message>
<translation></translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation>Eine neue Version von GPSBabel ist verfügbar.<br />Die installierte Version ist %1 <br />Die neueste Version ist %2</translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation>Möchten Sie die Aktualisierung herunter laden?</translation>
</message>
<translation type="obsolete"><center><b>Eine neue GPSBabel-Version ist verf&uumlgbar</b><br>Die Version auf diesem Computer ist %1 <br>Die neueste Version ist %2</center></translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation>Update</translation>
</message>
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation>Seleccionar archivo de entrada</translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation>Seleccionar archivo de salida</translation>
</message>
<context>
<name>MainWindow</name>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation>Defecto</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation>Seleccionar uno o más archivos de entrada</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation>Nombre del fichero de salida</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation>Se ha producido un error cuando se intentaba leer la configuración. Compruebe que el núcleo de "gpsbabel" está instalado correctamente y que se halla en la RUTA actual. Este programa no puede continuar.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation>El formato de alfunos ficheros o dispositivos no se halló durante la inicialización. Compruebe que el núcleo de "gpsbabel" está instalado correctamente y que se halla en la RUTA actual. Este programa no puede continuar.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation>Formatos de entrada y salida inadmisibles %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation>Formatos de entrada inadmisible %1; Formatos de salida inadmisible %2</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation>Formatos de entrada y salida admisibles (ambos) %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation>Puntos de interés</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation>Registro de trazados</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation>Rutas</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation>No hay opciones de entrada para el formato "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation>Opciones de %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation>No hay opciones de salida para el formato "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation>Se han especificicado puntos de interés, trazados o rutas no traducibles</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation>No se ha especificado el fichero de entrada</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation>El fichero de salida no es válido</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation>No se ha especificado el fichero de salida</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation>El proceso "%1" no comenzó</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation>El proceso terminó sin suerte y con el código %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation>Traducción realizada con éxito</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation>Error ejecutando gpsbabel: %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation>¿Estás seguro de que quieres volver a los formatos por defecto?</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation>Acerca de %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation>Uno o más filtros de datos están activos</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation>Ningún filtro de datos está activo</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation>Archivo</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation>Dispositivo</translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation>Formato</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translation>Nombre del dispositivo:</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation>Opciones</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation>Opciones de conversión</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation>-</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translation>Si se selecciona, convertir puntos de interés.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation>Puntos de interés</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translation>Si se selecciona, convertir las rutas.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation>Rutas</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translation>Si se selecciona, convertir los trazados.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation>Trazados</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation>Filtros de datos entre la entrada y la salida</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translation>Filtros</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translation>Más opciones de conversión.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translation>Más opciones</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation>Salida</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation>Si se selecciona, la salida es a un fichero. </translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation>Si se selecciona, la salida esperada es un dispositivo o un GPS</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translation>Formato de salida de los datos.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translation>Codificación de los caracteres de salida</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translation>Selecciona el nombre del fichero de salida. </translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation>Nombre del fichero</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation>Nombre del puerto al que está conectado el dispositivo de salida</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translation>Opciones aplicables al formato de salida seleccionado.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translation>Salida del proceso de conversión de GPSBabel.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation>Ayuda</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translation>Ayuda de GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation>Acerca de GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation>Salir</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translation>Preferencias ...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation>Comprueba si hay una actualización</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation>Haga una donación...</translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation>Ayuda</translation>
</message>
<translation>Ha devuelto datos no válidos en la línea %1: %2.</translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation>Una nueva versióon de GPSBabel ha salido ya. <br />Tu versión es la %1 <br />La última versióon sería %2</translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation>¿Quieres bajarte una actualización?</translation>
</message>
<translation type="obsolete"><center><b>Una nueva versión de GPSBabel está disponible </b><br>La versión actual es %1 <br> La versión más reciente es %2</center></translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation>Actualizar</translation>
</message>
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>MainWindow</name>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation>Options pour %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation>Fichier</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation>Périphérique</translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation type="unfinished">Format</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translatorcomment>via google translate</translatorcomment>
<translation>nom du périphérique:</translation>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation type="unfinished">Options</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation type="unfinished">Waypoints</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation type="unfinished">Routes</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation type="unfinished">Traces</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translatorcomment>via Google Translate</translatorcomment>
<translation>Filtres</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translatorcomment>via Google Translate</translatorcomment>
<translation>Plus d'options</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation type="unfinished">Sortie</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation>Aide</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translatorcomment>Via Google Translate</translatorcomment>
<translation>GPSBabel aider</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation type="unfinished">Visitez le site web ...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation type="unfinished">Faire un don...</translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation>Aide</translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>MainWindow</name>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation type="unfinished">Fájl</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation type="unfinished">Készülék</translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation type="unfinished">Formátum</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translation type="unfinished"></translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation type="unfinished">Beállítások</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation type="unfinished">Útpontok</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation type="unfinished">Útvonalak</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation type="unfinished">Nyomvonalak</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation type="unfinished">Kimenet</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation type="unfinished">Segítség</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation type="unfinished">Segítség</translation>
</message>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation type="unfinished"></translation>
</message>
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation>Seleziona il file di origine</translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation>Seleziona il file di destinazione</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation>File</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation>Dispositivo</translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation>Formato</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translation>Nome del dispositivo:</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation>Opzioni</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation>Opzioni di traduzione</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation>-</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translation>Se selezionato, traduce i punti di interesse.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation>Punti di interesse</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translation>Se selezionato, traduce le rotte.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation>Rotte</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translation>Se selezionato, traduce le tracce.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation>Tracce</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation>Filtri di dati tra sorgente e destinazione</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translation>Filtri</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translation>Altre opzioni di traduzione.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translation>Altre opzioni</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation>Destinazione</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation>Se selezionato, la destinazione è un file.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation>Se selezionato, la destinazione è un dispositivo o un'unità GPS</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translation>Formato dei dati di destinazione.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translation>Codifica dei caratteri della destinazione</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translation>Seleziona il nome del file di destinazione.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation>Nome del file</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation>Nome della porta cui è connesso il dispositivo di destinazione</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translation>Opzioni per il formato di destinazione selezionato.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translation>Risultato del processo di traduzione di GPSBabel.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation>Aiuto</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translation>Aiuto di GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation>Informazioni su GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation>Esci</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translation>Preferenze...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation>Controlla aggiornamenti</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation></translation>
</message>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation>predefinite</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation>Selezionare uno o più file in ingresso</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation>Nome del file in uscita</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
Questo programma non può proseguire.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
Questo programma non può proseguire.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation>I formati di ingresso e di uscita non supportano %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation>L'ingresso non supporta %1, il formato di destinazione supporta %2</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation>Il formato in ingresso supporta %1, il formato di destinazione non supporta %2</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation>I formati di origine e di destinazione supportano %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation>punti di interesse</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation>tracce</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation>rotte</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation>Non ci sono opzioni in ingresso per il formato "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation>Opzioni per %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation>Non ci sono opzioni in uscita per il formato "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation>Non è stato specificato alcun punto di interesse/rotta/traccia</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation>Il file di origine non è stato specificato</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation>Non è stata specificata una destinazione valida</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation>Il file di destinazione non è stato specificato</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation>Il processo "%1" non è stato avviato</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation>Il processo è terminato con il codice di errorre %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation>Traduzione terminata con successo</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation>Errore durante l'esecuzione di gpsbabel: %1
</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation>Si è certi di voler reimpostare tutte le opzioni dei formati ai valori predefiniti?</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation>Informazioni su %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation>È attivo uno o più filtri di dati</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation>Nessun filtro di dati è attivo</translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation>Aiuto</translation>
</message>
<translation>Dati ricevuti non validi alla linea %1: %2.</translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation>È disponibile una nuova versione di GPSBabel.<br />Versione corrente: %1 <br />Nuova versione: %2</translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation>Aggiorna</translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation>Si desidera scaricare un aggiornamento?</translation>
</message>
<context>
<name>FileDlgManager</name>
<message>
- <location filename="optionsdlg.cc" line="70"/>
+ <location filename="optionsdlg.cc" line="73"/>
<source>Select input file</source>
<translation>Выберите входной файл</translation>
</message>
<message>
- <location filename="optionsdlg.cc" line="75"/>
+ <location filename="optionsdlg.cc" line="77"/>
<source>Select output file</source>
<translation>Выберите выходной файл</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="44"/>
- <location filename="mainwinui.ui" line="428"/>
- <location filename="mainwinui.ui" line="632"/>
+ <location filename="mainwinui.ui" line="438"/>
+ <location filename="mainwinui.ui" line="642"/>
<source>File</source>
<translation>Файл</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="60"/>
- <location filename="mainwinui.ui" line="444"/>
+ <location filename="mainwinui.ui" line="454"/>
<source>Device</source>
<translation>Устройство</translation>
</message>
<message>
<location filename="mainwinui.ui" line="89"/>
- <location filename="mainwinui.ui" line="473"/>
+ <location filename="mainwinui.ui" line="483"/>
<source>Format</source>
<translation>Формат</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="162"/>
- <location filename="mainwinui.ui" line="543"/>
+ <location filename="mainwinui.ui" line="553"/>
<source>Device Name:</source>
<translation>Имя устройства:</translation>
</message>
</message>
<message>
<location filename="mainwinui.ui" line="203"/>
- <location filename="mainwinui.ui" line="584"/>
+ <location filename="mainwinui.ui" line="594"/>
<source>Options</source>
<translation>Параметры</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="218"/>
+ <location filename="mainwinui.ui" line="228"/>
<source>Translation Options</source>
<translation>Параметры конвертации</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="227"/>
- <location filename="mainwinui.ui" line="270"/>
- <location filename="mainwinui.ui" line="310"/>
+ <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="320"/>
<source>-</source>
<translation></translation>
</message>
<message>
- <location filename="mainwinui.ui" line="237"/>
+ <location filename="mainwinui.ui" line="247"/>
<source>If selected, translate waypoints.</source>
<translation>Если выбрано, конвертируются маршрутные точки.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="240"/>
+ <location filename="mainwinui.ui" line="250"/>
<source>Waypoints</source>
<translation>Маршрутные точки</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="277"/>
+ <location filename="mainwinui.ui" line="287"/>
<source>If selected, translate routes.</source>
<translation>Если выбрано, конвертируются маршруты.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="280"/>
+ <location filename="mainwinui.ui" line="290"/>
<source>Routes</source>
<translation>Маршруты</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="317"/>
+ <location filename="mainwinui.ui" line="327"/>
<source>If selected, translate tracks.</source>
<translation>Если выбрано, конвертируются треки.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="320"/>
+ <location filename="mainwinui.ui" line="330"/>
<source>Tracks</source>
<translation>Треки</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="356"/>
+ <location filename="mainwinui.ui" line="366"/>
<source>Data Filters between input and output</source>
<translation>Фильтр данных между входом и выходом</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="359"/>
+ <location filename="mainwinui.ui" line="369"/>
<source>Filters</source>
<translation>Фильтры</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="392"/>
+ <location filename="mainwinui.ui" line="402"/>
<source>More translation options. </source>
<translation>Дополнительные параметры конвертации.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="395"/>
+ <location filename="mainwinui.ui" line="405"/>
<source>More Options</source>
<translation>Дополнительно</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="405"/>
+ <location filename="mainwinui.ui" line="415"/>
<source>Output</source>
<translation>Выход</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="425"/>
+ <location filename="mainwinui.ui" line="435"/>
<source>If selected, output is to a file. </source>
<translation>Если выбрано, результат будет направлен в файл. </translation>
</message>
<message>
- <location filename="mainwinui.ui" line="441"/>
+ <location filename="mainwinui.ui" line="451"/>
<source>If selected, output is to a device or GPS unit</source>
<translation>Если выбрано, результат будет направлен на устройство или GPS приемник</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="480"/>
+ <location filename="mainwinui.ui" line="490"/>
<source>Output data format.</source>
<translation>Формат выходных данных.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="487"/>
+ <location filename="mainwinui.ui" line="497"/>
<source>Character encoding of output</source>
<translation>Кодировка выходных данных</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="508"/>
+ <location filename="mainwinui.ui" line="518"/>
<source>Browse for an output file name. </source>
<translation>Выберите имя выходного файла.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="511"/>
+ <location filename="mainwinui.ui" line="521"/>
<source>File Name</source>
<translation>Имя файла</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="550"/>
+ <location filename="mainwinui.ui" line="560"/>
<source>Name of port to which output device is connected</source>
<translation>Порт к которому подключено выходное устройство</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="581"/>
+ <location filename="mainwinui.ui" line="591"/>
<source>Options for the selected output format. </source>
<translation>Параметры выбранного выходного формата.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="605"/>
+ <location filename="mainwinui.ui" line="615"/>
<source>Output of GPSBabel translation process. </source>
<translation>Выполняется конвертация GPSBabel.</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="639"/>
+ <location filename="mainwinui.ui" line="649"/>
<source>Help</source>
<translation>Помощь</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="655"/>
+ <location filename="mainwinui.ui" line="665"/>
<source>GPSBabel Help</source>
<translation>Справка GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="660"/>
+ <location filename="mainwinui.ui" line="670"/>
<source>About GPSBabel</source>
<translation>О GPSBabel</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="665"/>
+ <location filename="mainwinui.ui" line="675"/>
<source>Quit</source>
<translation>Выход</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="670"/>
+ <location filename="mainwinui.ui" line="680"/>
<source>Preferences...</source>
<translation>Настройки...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="675"/>
+ <location filename="mainwinui.ui" line="685"/>
<source>Check for Upgrade</source>
<translation>Проверить обновления</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="680"/>
+ <location filename="mainwinui.ui" line="690"/>
<source>Visit Website...</source>
<translation>Посетите веб-сайт ...</translation>
</message>
<message>
- <location filename="mainwinui.ui" line="685"/>
+ <location filename="mainwinui.ui" line="695"/>
<source>Make a Donation...</source>
<translation>Сделать пожертвование...</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="386"/>
- <location filename="mainwindow.cc" line="387"/>
+ <location filename="mainwindow.cc" line="396"/>
+ <location filename="mainwindow.cc" line="397"/>
<source>default</source>
<translation>по умолчанию</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="560"/>
+ <location filename="mainwindow.cc" line="570"/>
<source>Select one or more input files</source>
<translation>Выберите один или несколько файлов</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="587"/>
+ <location filename="mainwindow.cc" line="597"/>
<source>Output File Name</source>
<translation>Имя выходного файла</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="647"/>
+ <location filename="mainwindow.cc" line="657"/>
<source>Error reading format configuration. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
Выполнение программы не может быть продолжено.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="658"/>
+ <location filename="mainwindow.cc" line="668"/>
<source>Some file/device formats were not found during initialization. Check that the backend program "gpsbabel" is properly installed and is in the current PATH
This program cannot continue.</source>
Выполнение программы не может быть продолжено.</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="680"/>
+ <location filename="mainwindow.cc" line="690"/>
<source>Input and output formats do not support %1</source>
<translation>Входной и выходной форматы не поддерживают %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="683"/>
+ <location filename="mainwindow.cc" line="693"/>
<source>Input does not support %1; output format supports %2</source>
<translation>Входной формат не поддерживает %1; выходной формат поддерживает %2</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="686"/>
+ <location filename="mainwindow.cc" line="696"/>
<source>Input format supports %1; output format does not support %2</source>
<translation>Входной формат поддерживает %1; выходной формат не поддерживаетt %2</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="689"/>
+ <location filename="mainwindow.cc" line="699"/>
<source>Both input and output formats support %1</source>
<translation>Входной и выходной формат поддерживают %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="710"/>
+ <location filename="mainwindow.cc" line="720"/>
<source>waypoints</source>
<translation>маршрутные точки</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="711"/>
+ <location filename="mainwindow.cc" line="721"/>
<source>tracks</source>
<translation>треки</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="712"/>
+ <location filename="mainwindow.cc" line="722"/>
<source>routes</source>
<translation>маршруты</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="802"/>
+ <location filename="mainwindow.cc" line="812"/>
<source>There are no input options for format "%1"</source>
<translation>Нет входных параметров для формата "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="809"/>
- <location filename="mainwindow.cc" line="829"/>
+ <location filename="mainwindow.cc" line="819"/>
+ <location filename="mainwindow.cc" line="839"/>
<source>Options for %1</source>
<translation>Параметры %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="822"/>
+ <location filename="mainwindow.cc" line="832"/>
<source>There are no output options for format "%1"</source>
<translation>Нет выходных параметров для формата "%1"</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="843"/>
+ <location filename="mainwindow.cc" line="853"/>
<source>No valid waypoints/routes/tracks translation specified</source>
<translation>Не выбрано преобразование маршрутных точек/маршрутов/треков</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="862"/>
+ <location filename="mainwindow.cc" line="872"/>
<source>No input file specified</source>
<translation>Не выбран входной файл</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="869"/>
+ <location filename="mainwindow.cc" line="879"/>
<source>No valid output specified</source>
<translation>Не выбран выходной файл</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="874"/>
+ <location filename="mainwindow.cc" line="884"/>
<source>No output file specified</source>
<translation>Не выбран выходной файл</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="890"/>
+ <location filename="mainwindow.cc" line="900"/>
<source>Process "%1" did not start</source>
<translation>Процесс "%1" не запустился</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="904"/>
+ <location filename="mainwindow.cc" line="914"/>
<source>Process exited unsucessfully with code %1</source>
<translation>Процесс завершился неудачей с кодом %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1047"/>
+ <location filename="mainwindow.cc" line="1057"/>
<source>Translation successful</source>
<translation>Конвертация выполнена</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1057"/>
+ <location filename="mainwindow.cc" line="1067"/>
<source>Error running gpsbabel: %1
</source>
<translation>Ошибка запуска gpsbabel: %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1170"/>
+ <location filename="mainwindow.cc" line="1180"/>
<source>Are you sure you want to reset all format options to default values?</source>
<translation>Вы действительно желаете сбросить все параметры формата в значения по умолчанию?</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1194"/>
+ <location filename="mainwindow.cc" line="1204"/>
<source>About %1</source>
<translation>О %1</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1237"/>
+ <location filename="mainwindow.cc" line="1247"/>
<source>One or more data filters are active</source>
<translation>Один или более фильтров данных активны</translation>
</message>
<message>
- <location filename="mainwindow.cc" line="1239"/>
+ <location filename="mainwindow.cc" line="1249"/>
<source>No data filters are active</source>
<translation>Фильтры данных не активны</translation>
</message>
<context>
<name>OptionsDlg</name>
<message>
- <location filename="optionsdlg.cc" line="189"/>
+ <location filename="optionsdlg.cc" line="192"/>
+ <location filename="optionsdlg.cc" line="203"/>
<source>Help</source>
<translation>Помощь</translation>
</message>
<translation>Некорректные данные возвращены в строке %1: %2.</translation>
</message>
<message>
- <location filename="upgrade.cc" line="322"/>
+ <location filename="upgrade.cc" line="326"/>
<source>A new version of GPSBabel is available.<br />Your version is %1 <br />The latest version is %2</source>
<translation>Доступна новая версия GPSBabel.<br />Используемая версия %1 <br />Последняя доступная версия %2</translation>
</message>
<message>
- <location filename="upgrade.cc" line="333"/>
+ <location filename="upgrade.cc" line="337"/>
<source>Upgrade</source>
<translation>Обновить</translation>
</message>
<message>
- <location filename="upgrade.cc" line="339"/>
+ <location filename="upgrade.cc" line="343"/>
<source>Do you wish to download an upgrade?</source>
<translation>Загрузить обновление?</translation>
</message>
static void
-correct_height(const waypoint* wpt)
+correct_height(const Waypoint* wpt)
{
- waypoint* waypointp = (waypoint*) wpt;
+ Waypoint* waypointp = (Waypoint*) wpt;
if (addopt) {
waypointp->altitude += addf;
static QString ostring;
static gpsbabel::XmlStreamWriter writer(&ostring);
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static route_head* trk_head;
#define MYNAME "hiketech"
}
static void
-hiketech_trkpt_pr(const waypoint* waypointp)
+hiketech_trkpt_pr(const Waypoint* waypointp)
{
writer.writeStartElement("pnt");
if (waypointp->creation_time.isValid()) {
}
static void
-hiketech_waypt_pr(const waypoint* wpt)
+hiketech_waypt_pr(const Waypoint* wpt)
{
writer.writeStartElement("wpt");
writer.setAutoFormattingIndent(-1);
static
void ht_wpt_s(xg_string args, const QXmlStreamAttributes* unused)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
static
static
void ht_trk_pnt_s(xg_string args, const QXmlStreamAttributes* unused)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
static
char name[9], desc[90];
double lat,lon;
unsigned char* HxWpt;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int iCount;
int iDataRead;
int iWptNum;
/* Get the waypoints */
for (iCount = 0; iCount < iWptNum ; iCount ++) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
iWptIndex = le_read16(&((WPTHDR*)HxWpt)->idx[iCount]);
pWptHxTmp = (WPT*)&HxWpt[OFFS_WPT + (sizeof(WPT) * iWptIndex)];
-static void holux_disp(const waypoint* wpt)
+static void holux_disp(const Waypoint* wpt)
{
double lon,lat;
short sIndex;
}
static void
-html_disp(const waypoint* wpt)
+html_disp(const Waypoint* wpt)
{
char* cout;
int32_t utmz;
}
static void
-html_index(const waypoint* wpt)
+html_index(const Waypoint* wpt)
{
char* sn = html_entitize(wpt->shortname);
char* d = html_entitize(wpt->description);
static short_handle wptname_sh, rtename_sh, trkname_sh;
static humminbird_rte_t* humrte;
static int rte_num;
-static QMap<QString, waypoint*> map;
+static QMap<QString, Waypoint*> map;
static
arglist_t humminbird_args[] = {
humminbird_waypt_t w;
double guder;
int num_icons;
- waypoint* wpt;
+ Waypoint* wpt;
if (! gbfread(&w, 1, sizeof(w), fin)) {
fatal(MYNAME ": Unexpected end of file!\n");
/* All right! Copy the data to the gpsbabel struct... */
- wpt = new waypoint;
+ wpt = new Waypoint;
// Could probably find a way to eliminate the alloc/copy.
char *s = xstrndup(w.name, sizeof(w.name));
route_head* rte = NULL;
for (i = 0; i < hrte.count; i++) {
- const waypoint* wpt;
+ const Waypoint* wpt;
char buff[10];
hrte.points[i] = be_read16(&hrte.points[i]);
xfree(s);
/* rte->rte_num = hrte.num + 1; only internal number */
}
- route_add_wpt(rte, new waypoint(*wpt));
+ route_add_wpt(rte, new Waypoint(*wpt));
}
}
}
humminbird_trk_header_t th;
humminbird_trk_point_t* points;
route_head* trk;
- waypoint* first_wpt;
+ Waypoint* first_wpt;
int i;
int max_points = 0;
int32_t accum_east;
/* We create one wpt for the info in the header */
- first_wpt = new waypoint;
+ first_wpt = new Waypoint;
g_lat = gudermannian_i1924(accum_north);
first_wpt->latitude = geocentric_to_geodetic_hwr(g_lat);
first_wpt->longitude = accum_east/EAST_SCALE * 180.0;
track_add_wpt(trk, first_wpt);
for (i=0 ; i<th.num_points-1 ; i++) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
int16_t next_deltaeast, next_deltanorth;
double guder;
humminbird_trk_header_old_t th;
humminbird_trk_point_old_t* points;
route_head* trk;
- waypoint* first_wpt;
+ Waypoint* first_wpt;
int i;
int max_points = 0;
int32_t accum_east;
/* We create one wpt for the info in the header */
- first_wpt = new waypoint;
+ first_wpt = new Waypoint;
g_lat = gudermannian_i1924(accum_north);
first_wpt->latitude = geocentric_to_geodetic_hwr(g_lat);
first_wpt->longitude = accum_east/EAST_SCALE * 180.0;
track_add_wpt(trk, first_wpt);
for (i=0 ; i<th.num_points-1 ; i++) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
// int16_t next_deltaeast, next_deltanorth;
double guder;
}
static void
-humminbird_write_waypoint(const waypoint* wpt)
+humminbird_write_waypoint(const Waypoint* wpt)
{
humminbird_waypt_t hum;
double lat, north, east;
}
static void
-humminbird_track_cb(const waypoint* wpt)
+humminbird_track_cb(const Waypoint* wpt)
{
int32_t north, east;
double lat;
}
static void
-humminbird_write_rtept(const waypoint* wpt)
+humminbird_write_rtept(const Waypoint* wpt)
{
int i;
}
static void
-humminbird_write_waypoint_wrapper(const waypoint* wpt)
+humminbird_write_waypoint_wrapper(const Waypoint* wpt)
{
char* key;
- waypoint* tmpwpt;
+ Waypoint* tmpwpt;
xasprintf(&key, "%s\01%.9f\01%.9f", CSTRc(wpt->shortname), wpt->latitude, wpt->longitude);
if (!(tmpwpt = map[key])) {
- tmpwpt = (waypoint*)wpt;
- map[key] = (waypoint*) wpt;
+ tmpwpt = (Waypoint*)wpt;
+ map[key] = (Waypoint*) wpt;
tmpwpt->extra_data = gb_int2ptr(waypoint_num + 1); /* NOT NULL */
humminbird_write_waypoint(wpt);
} else {
void* p = tmpwpt->extra_data;
- tmpwpt = (waypoint*)wpt;
+ tmpwpt = (Waypoint*)wpt;
tmpwpt->extra_data = p;
}
char task_num[5];
char task_desc[MAXRECLEN];
- waypoint* wpt;
+ Waypoint* wpt;
unsigned int lat_deg, lat_min, lat_frac;
unsigned int lon_deg, lon_min, lon_frac;
char lat_hemi[2], lon_hemi[2];
fatal(MYNAME ": task waypoint (C) record parse error\n%s", rec);
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = ('N' == lat_hemi[0] ? 1 : -1) *
(lat_deg + (lat_min * 1000 + lat_frac) / 1000.0 / 60);
int pres_alt, gnss_alt;
char pres_valid = 0;
char gnss_valid = 0;
- waypoint* pres_wpt = NULL;
- waypoint* gnss_wpt = NULL;
+ Waypoint* pres_wpt = NULL;
+ Waypoint* gnss_wpt = NULL;
time_t date = 0;
time_t prev_tod = 0;
time_t tod;
&validity, &pres_alt, &gnss_alt) != 14) {
fatal(MYNAME ": fix (B) record parse error\n%s\n", ibuf);
}
- pres_wpt = new waypoint;
+ pres_wpt = new Waypoint;
pres_wpt->latitude = ('N' == lat_hemi[0] ? 1 : -1) *
(lat_deg + (lat_min * 1000 + lat_frac) / 1000.0 / 60);
// Add the same waypoint with GNSS altitude to the second
// track
- gnss_wpt = new waypoint(*pres_wpt);
+ gnss_wpt = new Waypoint(*pres_wpt);
if (gnss_alt) {
gnss_valid = 1;
* IGC string formatting functions
*/
-static char* latlon2str(const waypoint* wpt)
+static char* latlon2str(const Waypoint* wpt)
{
static char str[18] = "";
char lat_hemi = wpt->latitude < 0 ? 'S' : 'N';
time_t date;
static const char dflt_str[] = "Unknown";
const char* str = NULL;
- waypoint* wpt;
+ Waypoint* wpt;
get_tracks(&pres_track, &track);
if (!track && pres_track) {
}
// Date in header record is that of the first fix record
date = !track ? current_time().toTime_t() :
- ((waypoint*) QUEUE_FIRST(&track->waypoint_list))->GetCreationTime().toTime_t();
+ ((Waypoint*) QUEUE_FIRST(&track->waypoint_list))->GetCreationTime().toTime_t();
if (NULL == (tm = gmtime(&date))) {
fatal(MYNAME ": Bad track timestamp\n");
* Generation of IGC task declaration records
*/
-static void wr_task_wpt_name(const waypoint* wpt, const char* alt_name)
+static void wr_task_wpt_name(const Waypoint* wpt, const char* alt_name)
{
gbfprintf(file_out, "C%s%s\r\n", latlon2str(wpt),
#if NEW_STRINGS
static void wr_task_hdr(const route_head* rte)
{
unsigned char have_takeoff = 0;
- const waypoint* wpt;
+ const Waypoint* wpt;
char flight_date[7] = "000000";
char task_desc[MAXRECLEN] = "";
int num_tps = rte->rte_waypt_ct - 2;
}
// See if the takeoff and landing waypoints are there or if we need to
// generate them.
- wpt = (waypoint*) QUEUE_LAST(&rte->waypoint_list);
+ wpt = (Waypoint*) QUEUE_LAST(&rte->waypoint_list);
#if NEW_STRINGS
if (wpt->shortname.startsWith("LANDING")) {
#else
#endif
num_tps--;
}
- wpt = (waypoint*) QUEUE_FIRST(&rte->waypoint_list);
+ wpt = (Waypoint*) QUEUE_FIRST(&rte->waypoint_list);
#if NEW_STRINGS
if (wpt->shortname.startsWith("TAKEOFF")) {
#else
}
}
-static void wr_task_wpt(const waypoint* wpt)
+static void wr_task_wpt(const Waypoint* wpt)
{
wr_task_wpt_name(wpt, "");
}
static void wr_task_tlr(const route_head* rte)
{
// If the landing waypoint is not supplied we need to generate it.
- const waypoint* wpt = (waypoint*) QUEUE_LAST(&rte->waypoint_list);
+ const Waypoint* wpt = (Waypoint*) QUEUE_LAST(&rte->waypoint_list);
QString sn = wpt->shortname;
// if (!wpt->shortname || strncmp(wpt->shortname, "LANDIN", 6) != 0) {
if (sn.isEmpty() || !sn.startsWith("LANDIN")) {
/*
* Write a single fix record
*/
-static void wr_fix_record(const waypoint* wpt, int pres_alt, int gnss_alt)
+static void wr_fix_record(const Waypoint* wpt, int pres_alt, int gnss_alt)
{
struct tm* tm;
double speed;
time_t pres_time, gnss_time;
int time_diff;
- const waypoint* wpt;
+ const Waypoint* wpt;
// Deduce the landing time from the pressure altitude track based on
// when we last descended to within 10m of the final track altitude.
elem = QUEUE_LAST(&pres_track->waypoint_list);
- last_alt = ((waypoint*) elem)->altitude;
+ last_alt = ((Waypoint*) elem)->altitude;
do {
elem = elem->prev;
if (&pres_track->waypoint_list == elem) {
// No track left
return 0;
}
- alt_diff = last_alt - ((waypoint*) elem)->altitude;
+ alt_diff = last_alt - ((Waypoint*) elem)->altitude;
if (alt_diff > 10.0) {
// Last part of track was ascending
return 0;
}
} while (alt_diff > -10.0);
- pres_time = ((waypoint*) elem->next)->GetCreationTime().toTime_t();
+ pres_time = ((Waypoint*) elem->next)->GetCreationTime().toTime_t();
if (global_opts.debug_level >= 1) {
printf(MYNAME ": pressure landing time %s", ctime(&pres_time));
}
// Deduce the landing time from the GNSS altitude track based on
// when the groundspeed last dropped below a certain level.
elem = QUEUE_LAST(&gnss_track->waypoint_list);
- last_alt = ((waypoint*) elem)->altitude;
+ last_alt = ((Waypoint*) elem)->altitude;
do {
- wpt = (waypoint*) elem;
+ wpt = (Waypoint*) elem;
elem = elem->prev;
if (&gnss_track->waypoint_list == elem) {
// No track left
return 0;
}
// Get a crude indication of groundspeed from the change in lat/lon
- time_diff = wpt->GetCreationTime().toTime_t() - ((waypoint*) elem)->GetCreationTime().toTime_t();
+ time_diff = wpt->GetCreationTime().toTime_t() - ((Waypoint*) elem)->GetCreationTime().toTime_t();
speed = !time_diff ? 0 :
- (fabs(wpt->latitude - ((waypoint*) elem)->latitude) +
- fabs(wpt->longitude - ((waypoint*) elem)->longitude)) / time_diff;
+ (fabs(wpt->latitude - ((Waypoint*) elem)->latitude) +
+ fabs(wpt->longitude - ((Waypoint*) elem)->longitude)) / time_diff;
if (global_opts.debug_level >= 2) {
printf(MYNAME ": speed=%f\n", speed);
}
} while (speed < 0.00003);
- gnss_time = ((waypoint*) elem->next)->GetCreationTime().toTime_t();
+ gnss_time = ((Waypoint*) elem->next)->GetCreationTime().toTime_t();
if (global_opts.debug_level >= 1) {
printf(MYNAME ": gnss landing time %s", ctime(&gnss_time));
}
{
static const queue* prev_elem = NULL;
static const queue* curr_elem = NULL;
- const waypoint* prev_wpt;
- const waypoint* curr_wpt;
+ const Waypoint* prev_wpt;
+ const Waypoint* curr_wpt;
int time_diff;
double alt_diff;
curr_elem = prev_elem = QUEUE_FIRST(&track->waypoint_list);
}
// Find the track points either side of the requested time
- while (((waypoint*) curr_elem)->GetCreationTime().toTime_t() < time) {
+ while (((Waypoint*) curr_elem)->GetCreationTime().toTime_t() < time) {
if (QUEUE_LAST(&track->waypoint_list) == curr_elem) {
// Requested time later than all track points, we can't interpolate
return unknown_alt;
curr_elem = QUEUE_NEXT(prev_elem);
}
- prev_wpt = (waypoint*) prev_elem;
- curr_wpt = (waypoint*) curr_elem;
+ prev_wpt = (Waypoint*) prev_elem;
+ curr_wpt = (Waypoint*) curr_elem;
if (QUEUE_FIRST(&track->waypoint_list) == curr_elem) {
if (curr_wpt->GetCreationTime().toTime_t() == time) {
{
const route_head* pres_track;
const route_head* gnss_track;
- const waypoint* wpt;
+ const Waypoint* wpt;
const queue* elem;
const queue* tmp;
int time_adj;
}
// Iterate through waypoints in both tracks simultaneously
QUEUE_FOR_EACH(&gnss_track->waypoint_list, elem, tmp) {
- wpt = (waypoint*) elem;
+ wpt = (Waypoint*) elem;
pres_alt = interpolate_alt(pres_track, wpt->GetCreationTime().toTime_t() + time_adj);
wr_fix_record(wpt, (int) pres_alt, (int) wpt->altitude);
}
// Only the pressure altitude track was found so generate fix
// records from it alone.
QUEUE_FOR_EACH(&pres_track->waypoint_list, elem, tmp) {
- wr_fix_record((waypoint*) elem, (int)((waypoint*) elem)->altitude, (int) unknown_alt);
+ wr_fix_record((Waypoint*) elem, (int)((Waypoint*) elem)->altitude, (int) unknown_alt);
}
} else if (gnss_track) {
// Only the GNSS altitude track was found so generate fix
// records from it alone.
QUEUE_FOR_EACH(&gnss_track->waypoint_list, elem, tmp) {
- wr_fix_record((waypoint*) elem, (int) unknown_alt, (int)((waypoint*) elem)->altitude);
+ wr_fix_record((Waypoint*) elem, (int) unknown_alt, (int)((Waypoint*) elem)->altitude);
}
} else {
// No tracks found so nothing to do
static gbfile* fout;
static route_head* track;
-static waypoint* wpt;
+static Waypoint* wpt;
static int track_index; /* index of track we'll write */
static int track_num; /* current index of track within track_disp_all */
{
ignr_xml_error((wpt != NULL));
- wpt = new waypoint;
+ wpt = new Waypoint;
}
static void
}
static void
-ignr_write_waypt(const waypoint* wpt)
+ignr_write_waypt(const Waypoint* wpt)
{
if (track_num != track_index) {
return;
// Reader callback
static void igo8_read(void)
{
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
route_head* track_head;
igo8_point point;
while (in_point_count &&
gbfread(&point, sizeof(point), 1, igo8_file_in) > 0) {
in_point_count--;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = le_read32(&point.lat) / (double)0x800000;
wpt_tmp->longitude = le_read32(&point.lon) / (double)0x800000;
}
// Write point callback
-static void write_igo8_track_point(const waypoint* wpt)
+static void write_igo8_track_point(const Waypoint* wpt)
{
igo8_point point;
static QString name, text;
static route_head* track;
-static waypoint* waypt;
+static Waypoint* waypt;
static xg_callback iktobj_waypt, iktobj_type, iktobj_name, iktobj_trkpt, iktobj_text;
static void
iktobj_trkpt(xg_string args, const QXmlStreamAttributes* attrv)
{
- waypt = new waypoint;
+ waypt = new Waypoint;
iktobj_waypt(args, attrv);
track_add_wpt(track, waypt);
waypt = NULL;
switch (atoi(args)) {
#endif
case 0:
- waypt = new waypoint;
+ waypt = new Waypoint;
break;
case 1:
track = route_head_alloc();
}
first = 1;
QUEUE_FOR_EACH(&rte_old->waypoint_list, elem2, tmp2) {
- waypoint* wpt = (waypoint*)elem2;
+ Waypoint* wpt = (Waypoint*)elem2;
if (first) {
first = 0;
} else {
for (timen = time1+interval;
timen < wpt->creation_time.toTime_t();
timen += interval) {
- waypoint* wpt_new = new waypoint(*wpt);
+ Waypoint* wpt_new = new Waypoint(*wpt);
wpt_new->SetCreationTime(timen);
#if NEW_STRINGS
wpt_new->shortname = QString();
for (distn = dist;
distn < curdist;
distn += dist) {
- waypoint* wpt_new = new waypoint(*wpt);
+ Waypoint* wpt_new = new Waypoint(*wpt);
wpt_new->SetCreationTime(distn/curdist*
(wpt->creation_time.toTime_t() - time1) + time1);
#if NEW_STRINGS
}
}
if (opt_route) {
- route_add_wpt(rte_new, new waypoint(*wpt));
+ route_add_wpt(rte_new, new Waypoint(*wpt));
} else {
- track_add_wpt(rte_new, new waypoint(*wpt));
+ track_add_wpt(rte_new, new Waypoint(*wpt));
}
lat1 = wpt->latitude;
} itracku_data_record;
static int itracku_is_valid_data_record(itracku_data_record* d);
-static void to_itracku_data_record(const waypoint* wp, itracku_data_record* d);
-static waypoint* to_waypoint(itracku_data_record* d);
+static void to_itracku_data_record(const Waypoint* wp, itracku_data_record* d);
+static Waypoint* to_waypoint(itracku_data_record* d);
/* itracku file access */
static void itracku_file_read_data_record(gbfile* fin, itracku_data_record* d);
static uint32_t itracku_file_read_last_time(gbfile* fin);
-static void itracku_file_read_waypts(gbfile* fin, void (*waypt_add)(waypoint* wpt));
-static void itracku_file_write_waypt(gbfile* fout, const waypoint* wpt);
+static void itracku_file_read_waypts(gbfile* fin, void (*waypt_add)(Waypoint* wpt));
+static void itracku_file_write_waypt(gbfile* fout, const Waypoint* wpt);
/* itracku device access */
static const unsigned char read_update_data_command[] = { 0x60, 0xb5, 0, 0, 0, 0, 0 }; /* command string to start memory dump */
static char* update_data_buffer_write;
static char* update_data_buffer_end;
-static void itracku_device_dump_waypts(void* fd, void (*waypt_add)(waypoint* wpt));
+static void itracku_device_dump_waypts(void* fd, void (*waypt_add)(Waypoint* wpt));
static int itracku_device_update_data_init();
static int itracku_device_update_data_read(void* buf, int len);
static void itracku_device_write_string(const char* s);
/*
Converts a itracku waypoint record to a gpsbabel waypoint.
*/
-static waypoint*
+static Waypoint*
to_waypoint(itracku_data_record* d)
{
- waypoint* wp;
- wp = new waypoint;
+ Waypoint* wp;
+ wp = new Waypoint;
wp->longitude = deg_min_to_deg(le_read32(d->longitude));
wp->latitude = deg_min_to_deg(le_read32(d->latitude));
wp->SetCreationTime(decode_itracku_time(le_read32(d->creation_time)));
}
static void
-to_itracku_data_record(const waypoint* wp, itracku_data_record* d)
+to_itracku_data_record(const Waypoint* wp, itracku_data_record* d)
{
le_write32(d->longitude, deg_to_deg_min(wp->longitude));
le_write32(d->latitude, deg_to_deg_min(wp->latitude));
}
static void
-itracku_device_dump_waypts(void* fd, void (*waypt_add)(waypoint* wpt))
+itracku_device_dump_waypts(void* fd, void (*waypt_add)(Waypoint* wpt))
{
itracku_data_record d;
}
static void
-itracku_file_read_waypts(gbfile* fin, void (*waypt_add)(waypoint* wpt))
+itracku_file_read_waypts(gbfile* fin, void (*waypt_add)(Waypoint* wpt))
{
itracku_data_record d;
}
static void
-itracku_file_write_waypt(gbfile* fout, const waypoint* wpt)
+itracku_file_write_waypt(gbfile* fout, const Waypoint* wpt)
{
itracku_data_record d;
to_itracku_data_record(wpt, &d);
}
static void
-itracku_waypt_input(void (*waypt_add)(waypoint* wpt))
+itracku_waypt_input(void (*waypt_add)(Waypoint* wpt))
{
if (fd) {
itracku_device_dump_waypts(fd, waypt_add);
static route_head* itracku_read_trk_track;
static void
-itracku_read_trk_waypt_add(waypoint* wpt)
+itracku_read_trk_waypt_add(Waypoint* wpt)
{
track_add_wpt(itracku_read_trk_track, wpt);
}
}
static void
-itracku_output_waypoint(const waypoint* wp)
+itracku_output_waypoint(const Waypoint* wp)
{
itracku_file_write_waypt(fout, wp);
}
}
static void
-nmea_set_waypoint_time(waypoint* wpt, struct tm* time, double fsec)
+nmea_set_waypoint_time(Waypoint* wpt, struct tm* time, double fsec)
{
if (time->tm_year == 0) {
wpt->SetCreationTime(((((time_t)time->tm_hour * 60) + time->tm_min) * 60) + time->tm_sec, lround(1000.0 * fsec));
}
}
-static waypoint*
+static Waypoint*
gprmc_parse(char* ibuf)
{
double latdeg, lngdeg;
char fix;
unsigned int dmy;
double speed,course;
- waypoint* waypt;
+ Waypoint* waypt;
double fsec;
struct tm tm;
dmy = dmy / 100;
tm.tm_mday = dmy;
- waypt = new waypoint;
+ waypt = new Waypoint;
WAYPT_SET(waypt, speed, KNOTS_TO_MPS(speed));
andreas.grimme@gmx.net
*/
-static waypoint*
+static Waypoint*
itracku_rt_position(posn_status* posn_status)
{
char line[1024];
- waypoint* wpt;
+ Waypoint* wpt;
while (1) {
gbser_read_line(fd, line, sizeof(line), 5000, 13, 10);
dbg(1, line);
static void
jogmap_marker(xg_string args, const QXmlStreamAttributes* attrv)
{
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
if (attrv->hasAttribute("lat")) {
wpt->latitude = attrv->value("lat").toString().toDouble();
};
static gbfile* fin, *fout;
-static QHash<QString, const waypoint*> trkpts;
+static QHash<QString, const Waypoint*> trkpts;
static time_t
jtr_parse_time(const char* str, struct tm* tm, int* milli)
route_head* trk = NULL;
while ((str = gbfgetstr(fin))) {
- waypoint* wpt;
+ Waypoint* wpt;
struct tm tm;
char* tmp;
int column = -1;
continue;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = lat;
wpt->longitude = lon;
}
static void
-jtr_trkpt_disp_cb(const waypoint* wpt)
+jtr_trkpt_disp_cb(const Waypoint* wpt)
{
char* str, *tmp;
char stime[10], sdate[7], scourse[6], sspeed[8];
static int line_width;
static int html_encrypt;
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static int wpt_tmp_queued;
static const char* posnfilename;
static char* posnfilenametmp;
void wpt_s(xg_string args, const QXmlStreamAttributes* unused)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp_queued = 0;
}
{
int consumed = 0;
double lat, lon, alt;
- waypoint* trkpt;
+ Waypoint* trkpt;
int n = 0;
route_head* trk_head = route_head_alloc();
}
track_add_head(trk_head);
while ((n = sscanf(CSTR(iargs), "%lf,%lf,%lf%n", &lon, &lat, &alt, &consumed)) > 0) {
- trkpt = new waypoint;
+ trkpt = new Waypoint;
trkpt->latitude = lat;
trkpt->longitude = lon;
writer->writeEndElement(); // Close StyleMap tag
}
-static void kml_output_timestamp(const waypoint* waypointp)
+static void kml_output_timestamp(const Waypoint* waypointp)
{
QString time_string = waypointp->CreationTimeXML();
if (!time_string.isEmpty()) {
}
static
-int kml_altitude_known(const waypoint* waypoint)
+int kml_altitude_known(const Waypoint* waypoint)
{
if (waypoint->altitude == unknown_alt) {
return 0;
}
static
-void kml_write_coordinates(const waypoint* waypointp)
+void kml_write_coordinates(const Waypoint* waypointp)
{
if (kml_altitude_known(waypointp)) {
writer->writeTextElement("coordinates",
/* Rather than a default "top down" view, view from the side to highlight
* topo features.
*/
-static void kml_output_lookat(const waypoint* waypointp)
+static void kml_output_lookat(const Waypoint* waypointp)
{
writer->writeStartElement("LookAt");
writer->writeTextElement("longitude", QString::number(waypointp->longitude, 'f', 6));
}
/* Output something interesing when we can for route and trackpoints */
-static void kml_output_description(const waypoint* pt)
+static void kml_output_description(const Waypoint* pt)
{
const char* alt_units;
double alt;
writer->writeEndElement(); // Close description tag
}
-static void kml_recompute_time_bounds(const waypoint* waypointp)
+static void kml_recompute_time_bounds(const Waypoint* waypointp)
{
if (waypointp->GetCreationTime().isValid()) {
if (!(kml_time_min.isValid()) ||
}
}
-static void kml_add_to_bounds(const waypoint* waypointp)
+static void kml_add_to_bounds(const Waypoint* waypointp)
{
waypt_add_to_bounds(&kml_bounds, waypointp);
kml_recompute_time_bounds(waypointp);
}
-static void kml_output_point(const waypoint* waypointp, kml_point_type pt_type)
+static void kml_output_point(const Waypoint* waypointp, kml_point_type pt_type)
{
const char* style;
queue* elem, *tmp;
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* tpt = (waypoint*) elem;
+ Waypoint* tpt = (Waypoint*) elem;
int first_in_trk = tpt->Q.prev == &header->waypoint_list;
if (!first_in_trk && tpt->wpt_flags.new_trkseg) {
needs_multigeometry = 1;
}
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* tpt = (waypoint*) elem;
+ Waypoint* tpt = (Waypoint*) elem;
int first_in_trk = tpt->Q.prev == &header->waypoint_list;
if (tpt->wpt_flags.new_trkseg) {
if (!first_in_trk) {
static
char*
-kml_lookup_gc_icon(const waypoint* waypointp)
+kml_lookup_gc_icon(const Waypoint* waypointp)
{
const char* icon;
char* rb;
static const
char*
-kml_lookup_gc_container(const waypoint* waypointp)
+kml_lookup_gc_container(const Waypoint* waypointp)
{
const char* cont;
return tmp;
}
-QString kml_geocache_get_logs(const waypoint* wpt)
+QString kml_geocache_get_logs(const Waypoint* wpt)
{
QString r;
writer->writeEndElement(); // Close Data tag
}
-static void kml_geocache_pr(const waypoint* waypointp)
+static void kml_geocache_pr(const Waypoint* waypointp)
{
char* is;
char date_placed[100]; // Always long engough for a date.
* WAYPOINTS
*/
-static void kml_waypt_pr(const waypoint* waypointp)
+static void kml_waypt_pr(const Waypoint* waypointp)
{
QString icon;
xfree(td);
}
-static void kml_track_disp(const waypoint* waypointp)
+static void kml_track_disp(const Waypoint* waypointp)
{
kml_output_point(waypointp, kmlpt_track);
}
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
switch (member) {
case fld_power:
queue* elem, *tmp;
int points_with_time = 0;
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* tpt = (waypoint*)elem;
+ Waypoint* tpt = (Waypoint*)elem;
if (tpt->GetCreationTime().isValid()) {
points_with_time++;
queue* elem, *tmp;
kml_track_hdr(header);
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* tpt = (waypoint*)elem;
+ Waypoint* tpt = (Waypoint*)elem;
kml_track_disp(tpt);
}
kml_track_tlr(header);
kml_output_positioning();
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* tpt = (waypoint*)elem;
+ Waypoint* tpt = (Waypoint*)elem;
if (tpt->GetCreationTime().isValid()) {
QString time_string = tpt->CreationTimeXML();
// TODO: How to handle clamped, floating, extruded, etc.?
QUEUE_FOR_EACH(&header->waypoint_list, elem, tmp) {
- waypoint* tpt = (waypoint*)elem;
+ Waypoint* tpt = (Waypoint*)elem;
if (kml_altitude_known(tpt)) {
writer->writeTextElement("gx:coord",
kml_output_header(header, NULL);
}
-static void kml_route_disp(const waypoint* waypointp)
+static void kml_route_disp(const Waypoint* waypointp)
{
kml_output_point(waypointp, kmlpt_route);
}
static route_head* posn_trk_head = NULL;
static void
-kml_wr_position(waypoint* wpt)
+kml_wr_position(Waypoint* wpt)
{
static gpsbabel::DateTime last_valid_fix;
track points if we've not moved a minimum distance from the
beginnning of our accumulated track. */
{
- waypoint* newest_posn= (waypoint*) QUEUE_LAST(&posn_trk_head->waypoint_list);
+ Waypoint* newest_posn= (Waypoint*) QUEUE_LAST(&posn_trk_head->waypoint_list);
if (radtometers(gcdist(RAD(wpt->latitude), RAD(wpt->longitude),
RAD(newest_posn->latitude), RAD(newest_posn->longitude))) > 50) {
- track_add_wpt(posn_trk_head, new waypoint(*wpt));
+ track_add_wpt(posn_trk_head, new Waypoint(*wpt));
} else {
/* If we haven't move more than our threshold, pretend
* we didn't move at all to prevent Earth from jittering
*/
while (max_position_points &&
(posn_trk_head->rte_waypt_ct >= max_position_points)) {
- waypoint* tonuke = (waypoint*) QUEUE_FIRST(&posn_trk_head->waypoint_list);
+ Waypoint* tonuke = (Waypoint*) QUEUE_FIRST(&posn_trk_head->waypoint_list);
track_del_wpt(posn_trk_head, tonuke);
}
#include "xmlgeneric.h"
static gbfile* ofd;
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
QString urllink;
QString urllinkt;
static char* binary = NULL;
}
static void
-lmx_print(const waypoint* wpt)
+lmx_print(const Waypoint* wpt)
{
QString oname;
QString odesc;
static void
lmx_lm_start(xg_string args, const QXmlStreamAttributes* unused)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
static void
}
static void
-lowranceusr_parse_waypt(waypoint* wpt_tmp)
+lowranceusr_parse_waypt(Waypoint* wpt_tmp)
{
char buff[MAXUSRSTRINGSIZE + 1];
int text_len;
short int num_routes, num_legs;
int i,j;
int text_len;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
num_routes = gbfgetint16(file_in);
/* waypoints */
for (j=0; j < num_legs; j++) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
lowranceusr_parse_waypt(wpt_tmp);
route_add_wpt(rte_head, wpt_tmp);
}
/* symbol */
(void) gbfread(&buff[0], 4, 1, file_in);
} else {
- waypoint* wpt_tmp;
- wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp;
+ wpt_tmp = new Waypoint;
/* position coord lat & long */
wpt_tmp->latitude = lat_mm_to_deg(gbfgetint32(file_in));
short int num_trails, num_trail_points, num_section_points;
int i,j, trk_num, itmp;
int text_len;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
route_head* trk_tmp;
/* num trails */
}
for (j=0; j < num_section_points; j++, num_trail_points--) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = lat_mm_to_deg(gbfgetint32(file_in));
wpt_tmp->longitude = lon_mm_to_deg(gbfgetint32(file_in));
/* continuous */
}
for (i = 0; i < NumWaypoints; i++) {
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
/* Object num */
object_num = gbfgetint16(file_in);
}
static void
-lowranceusr_waypt_disp(const waypoint* wpt)
+lowranceusr_waypt_disp(const Waypoint* wpt)
{
int text_len, Lat, Lon, Time, SymbolId;
short int WayptType;
}
static void
-lowranceusr_waypt_pr(const waypoint* wpt)
+lowranceusr_waypt_pr(const Waypoint* wpt)
{
/* our personal waypoint counter */
* 4 bytes symbol
*/
static void
-lowranceusr_write_icon(const waypoint* wpt)
+lowranceusr_write_icon(const Waypoint* wpt)
{
int latmm = lat_deg_to_mm(wpt->latitude);
int lonmm = lon_deg_to_mm(wpt->longitude);
}
static void
-lowranceusr_track_disp(const waypoint* wpt)
+lowranceusr_track_disp(const Waypoint* wpt)
{
int lat, lon;
static int route_uid;
static int track_uid;
-static waypoint** waypt_table;
+static Waypoint** waypt_table;
static int waypt_table_sz, waypt_table_ct;
static char* opt_title;
/* make waypoint shortnames unique */
static char
-same_points(const waypoint* A, const waypoint* B)
+same_points(const Waypoint* A, const Waypoint* B)
{
return ( /* !!! We are case-sensitive !!! */
#if NEW_STRINGS
}
static void
-register_waypt(const waypoint* ref)
+register_waypt(const Waypoint* ref)
{
int i;
- waypoint* wpt = (waypoint*) ref;
+ Waypoint* wpt = (Waypoint*) ref;
for (i = 0; i < waypt_table_ct; i++) {
- waypoint* cmp = waypt_table[i];
+ Waypoint* cmp = waypt_table[i];
if (same_points(wpt, cmp)) {
return;
if (waypt_table_ct >= waypt_table_sz) {
waypt_table_sz += 32;
if (waypt_table) {
- waypt_table = (waypoint**) xrealloc(waypt_table, waypt_table_sz * sizeof(wpt));
+ waypt_table = (Waypoint**) xrealloc(waypt_table, waypt_table_sz * sizeof(wpt));
} else {
- waypt_table = (waypoint**) xmalloc(waypt_table_sz * sizeof(wpt));
+ waypt_table = (Waypoint**) xmalloc(waypt_table_sz * sizeof(wpt));
}
}
CSTRc(wpt->shortname), CSTRc(wpt->description), waypt_table_ct);
}
- waypt_table[waypt_table_ct] = (waypoint*)wpt;
+ waypt_table[waypt_table_ct] = (Waypoint*)wpt;
waypt_table_ct++;
}
/* end borrowed from raymarine.c */
static int
-lowranceusr4_find_waypt_index(const waypoint* wpt)
+lowranceusr4_find_waypt_index(const Waypoint* wpt)
{
int i;
for (i = 0; i < waypt_table_ct; ++i) {
- if (same_points(wpt, (const waypoint*)waypt_table[i])) {
+ if (same_points(wpt, (const Waypoint*)waypt_table[i])) {
return i;
}
}
}
for (i = 0; i < num_waypts; ++i) {
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
lowranceusr4_fsdata* fsdata = lowranceusr4_alloc_fsdata();
fs_chain_add(&(wpt_tmp->fs), (format_specific_data*) fsdata);
}
}
-static waypoint*
+static Waypoint*
lowranceusr4_find_waypt(int uid_unit, int uid_seq_low, int uid_seq_high)
{
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
lowranceusr4_fsdata* fs = NULL;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
fs = (lowranceusr4_fsdata*) fs_chain_find(waypointp->fs, FS_LOWRANCEUSR4);
if (fs && fs->uid_unit == uid_unit &&
unsigned int num_routes, i, j, text_len;
unsigned int num_legs;
char buff[MAXUSRSTRINGSIZE + 1];
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
unsigned int uid_unit, uid_seq_low, uid_seq_high;
num_routes = gbfgetint32(file_in);
printf(MYNAME " parse_routes: added wpt %s to route %s\n",
CSTRc(wpt_tmp->shortname), CSTRc(rte_head->rte_name));
}
- route_add_wpt(rte_head, new waypoint(*wpt_tmp));
+ route_add_wpt(rte_head, new Waypoint(*wpt_tmp));
}
}
{
int num_trails, num_trail_pts, M, i, j, k, trk_num, text_len;
char buff[MAXUSRSTRINGSIZE + 1];
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
/* num trails */
num_trails = gbfgetint32(file_in);
}
for (j = 0; j < num_trail_pts; ++j) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
/* Some unknown bytes */
gbfgetint16(file_in);
static void
-lowranceusr4_waypt_disp(const waypoint* wpt)
+lowranceusr4_waypt_disp(const Waypoint* wpt)
{
/* UID unit number */
gbfputint32(opt_serialnum_i, file_out);
printf(MYNAME " writing out waypt %d (%s - %s)\n",
i, CSTRc(waypt_table[i]->shortname), CSTRc(waypt_table[i]->description));
}
- lowranceusr4_waypt_disp((const waypoint*)waypt_table[i]);
+ lowranceusr4_waypt_disp((const Waypoint*)waypt_table[i]);
}
}
}
static void
-lowranceusr4_write_wpt_uids(const waypoint* wpt)
+lowranceusr4_write_wpt_uids(const Waypoint* wpt)
{
int waypt_idx;
}
static void
-lowranceusr4_write_track_waypt(const waypoint* wpt)
+lowranceusr4_write_track_waypt(const Waypoint* wpt)
{
/* Some unknown bytes */
gbfputint16(0, file_out);
unsigned int mag_checksum(const char* const buf);
QString m330_cleanse(const char* istring);
-waypoint* mag_trkparse(char* trkmsg);
+Waypoint* mag_trkparse(char* trkmsg);
void mag_rteparse(char* rtemsg);
char* buff;
while ((buff = gbfgetstr(maggeofile_in))) {
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
geocache_data* gcdata;
char* s = NULL;
int fld;
buff += 9; /* skip field no. 1 */
fld = 1;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
gcdata = wpt_tmp->AllocGCData();
while ((s = csv_lineparse(buff, ",", "", fld++))) {
}
static void
-maggeo_waypt_pr(const waypoint* waypointp)
+maggeo_waypt_pr(const Waypoint* waypointp)
{
char obuf[4096];
double ilon, ilat;
static route_head* trk_head;
static int ignore_unable;
-static waypoint* mag_wptparse(char*);
+static Waypoint* mag_wptparse(char*);
typedef QString (cleanse_fn)(const char*);
static cleanse_fn* mag_cleanse;
static const char** os_get_magellan_mountpoints();
return;
}
if (strncmp(ibuf, "$PMGNWPL,", 7) == 0) {
- waypoint* wpt = mag_wptparse(ibuf);
+ Waypoint* wpt = mag_wptparse(ibuf);
waypoint_read_count++;
if (global_opts.verbose_status) {
waypt_status_disp(waypoint_read_count,
}
}
if (strncmp(ibuf, "$PMGNTRK,", 7) == 0) {
- waypoint* wpt = mag_trkparse(ibuf);
+ Waypoint* wpt = mag_trkparse(ibuf);
/*
* Allow lazy allocation of track head.
*/
* $PMGNTRK,3605.259,N,08644.389,W,00151,M,201444.61,A,,020302*66
* create and return a populated waypoint.
*/
-waypoint*
+Waypoint*
mag_trkparse(char* trkmsg)
{
double latdeg, lngdeg;
int hms;
int fracsecs;
struct tm tm;
- waypoint* waypt;
+ Waypoint* waypt;
- waypt = new waypoint;
+ waypt = new Waypoint;
memset(&tm, 0, sizeof(tm));
QUEUE_FOR_EACH(&mag_rte_head->Q, elem, tmp) {
mag_rte_elem* re = (mag_rte_elem*) elem;
- waypoint* waypt;
+ Waypoint* waypt;
queue* welem, *wtmp;
/*
* Copy route points from temp wpt queue.
*/
QUEUE_FOR_EACH(&rte_wpt_tmp, welem, wtmp) {
- waypt = (waypoint*)welem;
+ waypt = (Waypoint*)welem;
#if NEW_STRINGS
if (waypt->shortname == re->wpt_name) {
#else
if (strcmp(waypt->shortname, re->wpt_name) == 0) {
#endif
- waypoint* wpt = new waypoint(*waypt);
+ Waypoint* wpt = new Waypoint(*waypt);
route_add_wpt(rte_head, wpt);
break;
}
* $PMGNWPL,3549.499,N,08650.827,W,0000257,M,HOME,HOME,c*4D
* create and return a populated waypoint.
*/
-static waypoint*
+static Waypoint*
mag_wptparse(char* trkmsg)
{
double latdeg, lngdeg;
char shortname[100];
char descr[256];
char icon_token[100];
- waypoint* waypt;
+ Waypoint* waypt;
char* icons;
char* icone;
char* blah;
descr[0] = 0;
icon_token[0] = 0;
- waypt = new waypoint;
+ waypt = new Waypoint;
sscanf(trkmsg,"$PMGNWPL,%lf,%c,%lf,%c,%d,%c,%[^,],%[^,]",
&latdeg,&latdir,
static
void
-mag_waypt_pr(const waypoint* waypointp)
+mag_waypt_pr(const Waypoint* waypointp)
{
double lon, lat;
double ilon, ilat;
}
static
-void mag_track_disp(const waypoint* waypointp)
+void mag_track_disp(const Waypoint* waypointp)
{
double ilon, ilat;
double lon, lat;
mag_route_trl(const route_head* rte)
{
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
char obuff[256];
char buff1[64], buff2[64];
char* pbuff, *owpt;
thisline = i = 0;
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
i++;
if (deficon) {
tracking_status.request_terminate = 0;
while (!tracking_status.request_terminate) {
- waypoint* wpt;
+ Waypoint* wpt;
wpt = ivecs->position_ops.rd_position(&tracking_status);
#define TR7_S_FIX 29
static gbfile* fin, *fout;
-static const waypoint* wpt_tmp;
+static const Waypoint* wpt_tmp;
static const route_head* trk_tmp;
static int course_tmp, speed_tmp;
{
route_head* trk = NULL;
unsigned int magic;
- waypoint* prev = NULL;
+ Waypoint* prev = NULL;
magic = gbfgetint32(fin);
if (magic != TR7_TRACK_MAGIC) {
while (! gbfeof(fin)) {
unsigned char buff[TR7_S_SIZE];
double lat, lon;
- waypoint* wpt;
+ Waypoint* wpt;
float speed, course;
gbfread(buff, 1, sizeof(buff), fin);
continue;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = lat;
wpt->longitude = lon;
}
static void
-tr7_check_after_read_wpt_cb(const waypoint* wpt)
+tr7_check_after_read_wpt_cb(const Waypoint* wpt)
{
if (wpt->speed != 0) {
speed_tmp = 1;
{
queue* elem, *tmp;
QUEUE_FOR_EACH((queue*)&trk->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (speed_tmp == 0) {
WAYPT_UNSET(wpt, speed);
}
}
static void
-tr7_disp_waypt_cb(const waypoint* wpt)
+tr7_disp_waypt_cb(const Waypoint* wpt)
{
unsigned char buff[TR7_S_SIZE];
double speed, course;
}
static const double DIV_RATE = 100000.0f;
-static waypoint*
+static Waypoint*
read_waypoint(void)
{
int longitude = gbfgetint32(fin);
int latitude = gbfgetint32(fin);
- waypoint* ret = new waypoint;
+ Waypoint* ret = new Waypoint;
ret->latitude = double(latitude)/DIV_RATE;
ret->longitude = double(longitude)/DIV_RATE;
const int amount = length/8;
for (int i = 0; i < amount; ++i) {
- waypoint* tmp = read_waypoint();
+ Waypoint* tmp = read_waypoint();
track_add_wpt(track, tmp);
}
int wpt_number;
char wpt_icon;
char wpt_status;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
route_head* rte_head;
wpt_count = gbfgetint32(mapsend_file_in);
while (wpt_count--) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->shortname = gbfgetpstr(mapsend_file_in);
wpt_tmp->description = gbfgetpstr(mapsend_file_in);
wpt_count = gbfgetint32(mapsend_file_in);
while (wpt_count--) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
/* waypoint name */
wpt_tmp->shortname = gbfgetpstr(mapsend_file_in);
int valid;
unsigned char centisecs;
route_head* track_head;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
track_head = route_head_alloc();
track_head->rte_name = gbfgetpstr(mapsend_file_in);
trk_count = gbfgetuint32(mapsend_file_in);
while (trk_count--) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->longitude = gbfgetdbl(mapsend_file_in);
wpt_tmp->latitude = -gbfgetdbl(mapsend_file_in);
static void
-mapsend_waypt_pr(const waypoint* waypointp)
+mapsend_waypt_pr(const Waypoint* waypointp)
{
unsigned int c = 0;
double falt;
}
static void
-mapsend_route_disp(const waypoint* waypointp)
+mapsend_route_disp(const Waypoint* waypointp)
{
unsigned char c;
QString iconp;
}
-void mapsend_track_disp(const waypoint* wpt)
+void mapsend_track_disp(const Waypoint* wpt)
{
unsigned char c;
int32_t t;
static char* tempname;
static char* fin_name;
-static const waypoint* prevRouteWpt;
+static const Waypoint* prevRouteWpt;
/* Private queues of written out waypoints */
static queue written_wpt_head;
static queue written_route_wpt_head;
queue* elem, *tmp;
QUEUE_FOR_EACH(whichQueue, elem, tmp) {
- waypoint* q = (waypoint*) dequeue(elem);
+ Waypoint* q = (Waypoint*) dequeue(elem);
delete q;
}
}
* Find a waypoint that we've already written out
*
*/
-waypoint*
+Waypoint*
mps_find_wpt_q_by_name(const queue* whichQueue, const QString& name)
{
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
QUEUE_FOR_EACH(whichQueue, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
if (waypointp->shortname == name) {
return waypointp;
}
*
*/
void
-mps_wpt_q_add(const queue* whichQueue, const waypoint* wpt)
+mps_wpt_q_add(const queue* whichQueue, const Waypoint* wpt)
{
- waypoint* written_wpt = new waypoint(*wpt);
+ Waypoint* written_wpt = new Waypoint(*wpt);
ENQUEUE_TAIL(whichQueue, &written_wpt->Q);
}
* MRCB
*/
static void
-mps_waypoint_r(gbfile* mps_file, int mps_ver, waypoint** wpt, unsigned int* mpsclass)
+mps_waypoint_r(gbfile* mps_file, int mps_ver, Waypoint** wpt, unsigned int* mpsclass)
{
char tbuf[100];
char wptname[MPSNAMEBUFFERLEN];
int icon;
int dynamic;
- waypoint* thisWaypoint = NULL;
+ Waypoint* thisWaypoint = NULL;
double mps_altitude = unknown_alt;
double mps_proximity = unknown_alt;
double mps_depth = unknown_alt;
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
*wpt = thisWaypoint;
mps_readstr(mps_file, wptname, sizeof(wptname));
* MRCB
*/
static void
-mps_waypoint_w(gbfile* mps_file, int mps_ver, const waypoint* wpt, const int isRouteWpt)
+mps_waypoint_w(gbfile* mps_file, int mps_ver, const Waypoint* wpt, const int isRouteWpt)
{
int reclen;
int lat, lon;
*
*/
static void
-mps_waypoint_w_unique_wrapper(const waypoint* wpt)
+mps_waypoint_w_unique_wrapper(const Waypoint* wpt)
{
- waypoint* wptfound = NULL;
+ Waypoint* wptfound = NULL;
/* Search for this waypoint in the ones already written */
wptfound = mps_find_wpt_q_by_name(&written_wpt_head, CSTRc(wpt->shortname));
*
*/
static void
-mps_route_wpt_w_unique_wrapper(const waypoint* wpt)
+mps_route_wpt_w_unique_wrapper(const Waypoint* wpt)
{
- waypoint* wptfound = NULL;
+ Waypoint* wptfound = NULL;
/* Search for this waypoint in the ones already written */
wptfound = mps_find_wpt_q_by_name(&written_wpt_head, CSTRc(wpt->shortname));
*
*/
static void
-mps_waypoint_w_uniqloc_wrapper(waypoint* wpt)
+mps_waypoint_w_uniqloc_wrapper(Waypoint* wpt)
{
- waypoint* wptfound = NULL;
+ Waypoint* wptfound = NULL;
char* newName;
/* Search for this waypoint in the ones already written */
((wpt->longitude - wptfound->longitude) != 0)) {
/* Not the same lat lon, so rename and add */
newName = mkshort(written_wpt_mkshort_handle, wpt->shortname);
- wptfound = new waypoint(*wpt);
+ wptfound = new Waypoint(*wpt);
xfree(wptfound->shortname);
wptfound->shortname = newName;
mps_waypoint_w(mps_file_out, mps_ver_out, wptfound, (1==0));
route_head* rte_head;
int rte_count;
- waypoint* thisWaypoint;
- waypoint* tempWpt;
+ Waypoint* thisWaypoint;
+ Waypoint* tempWpt;
double mps_altitude = unknown_alt;
double mps_depth = unknown_alt;
tempWpt = find_waypt_by_name(wptname);
if (tempWpt != NULL) {
- thisWaypoint = new waypoint(*tempWpt);
+ thisWaypoint = new Waypoint(*tempWpt);
} else {
tempWpt = mps_find_wpt_q_by_name(&read_route_wpt_head, wptname);
if (tempWpt != NULL) {
- thisWaypoint = new waypoint(*tempWpt);
+ thisWaypoint = new Waypoint(*tempWpt);
} else {
/* should never reach here, but we do need a fallback position */
#ifdef MPS_DEBUG
fprintf(stderr, "mps_route_r: reached the point we never should\n");
#endif
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
thisWaypoint->shortname = wptname;
thisWaypoint->latitude = GPS_Math_Semi_To_Deg(lat);
thisWaypoint->longitude = GPS_Math_Semi_To_Deg(lon);
tempWpt = find_waypt_by_name(wptname);
if (tempWpt != NULL) {
- thisWaypoint = new waypoint(*tempWpt);
+ thisWaypoint = new Waypoint(*tempWpt);
} else {
tempWpt = mps_find_wpt_q_by_name(&read_route_wpt_head, wptname);
if (tempWpt != NULL) {
- thisWaypoint = new waypoint(*tempWpt);
+ thisWaypoint = new Waypoint(*tempWpt);
} else {
/* should never reach here, but we do need a fallback position */
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
thisWaypoint->shortname = wptname;
thisWaypoint->latitude = GPS_Math_Semi_To_Deg(lat);
thisWaypoint->longitude = GPS_Math_Semi_To_Deg(lon);
char hdr[20];
char zbuf[20];
- waypoint* testwpt;
+ Waypoint* testwpt;
time_t uniqueValue = 0;
int allWptNameLengths;
if (rte->waypoint_list.next) { /* this test doesn't do what I want i.e test if this is a valid route - treat as a placeholder for now */
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- testwpt = (waypoint*)elem;
+ testwpt = (Waypoint*)elem;
if (rte_datapoints == 0) {
uniqueValue = testwpt->GetCreationTime().toTime_t();
}
* MRCB
*/
static void
-mps_routedatapoint_w(gbfile* mps_file, int mps_ver, const waypoint* rtewpt)
+mps_routedatapoint_w(gbfile* mps_file, int mps_ver, const Waypoint* rtewpt)
{
int lat;
int lon;
double minalt=-unknown_alt;
double mps_altitude;
- waypoint* wptfound;
+ Waypoint* wptfound;
memset(zbuf, 0, sizeof(zbuf));
memset(ffbuf, 0xff, sizeof(ffbuf));
}
static void
-mps_routedatapoint_w_wrapper(const waypoint* rte)
+mps_routedatapoint_w_wrapper(const Waypoint* rte)
{
mps_routedatapoint_w(mps_file_out, mps_ver_out, rte);
}
route_head* track_head;
int trk_count;
- waypoint* thisWaypoint;
+ Waypoint* thisWaypoint;
double mps_altitude = unknown_alt;
double mps_depth = unknown_alt;
gbfseek(mps_file, 8, SEEK_CUR);
}
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
thisWaypoint->latitude = GPS_Math_Semi_To_Deg(lat);
thisWaypoint->longitude = GPS_Math_Semi_To_Deg(lon);
thisWaypoint->SetCreationTime(dateTime);
int tname_len;
char* tname;
char hdr[20];
- waypoint* testwpt;
+ Waypoint* testwpt;
time_t uniqueValue = 0;
queue* elem, *tmp;
if (trk->waypoint_list.next) { /* this test doesn't do what I want i.e test if this is a valid track - treat as a placeholder for now */
QUEUE_FOR_EACH(&trk->waypoint_list, elem, tmp) {
if (trk_datapoints == 0) {
- testwpt = (waypoint*)elem;
+ testwpt = (Waypoint*)elem;
uniqueValue = testwpt->GetCreationTime().toTime_t();
}
trk_datapoints++;
* MRCB
*/
static void
-mps_trackdatapoint_w(gbfile* mps_file, int mps_ver, const waypoint* wpt)
+mps_trackdatapoint_w(gbfile* mps_file, int mps_ver, const Waypoint* wpt)
{
int lat, lon;
time_t t = wpt->GetCreationTime().toTime_t();
}
static void
-mps_trackdatapoint_w_wrapper(const waypoint* wpt)
+mps_trackdatapoint_w_wrapper(const Waypoint* wpt)
{
mps_trackdatapoint_w(mps_file_out, mps_ver_out, wpt);
}
static void
mps_read(void)
{
- waypoint* wpt;
+ Waypoint* wpt;
route_head* rte;
route_head* trk;
mps_write(void)
{
int short_length;
- waypoint* wpt;
+ Waypoint* wpt;
route_head* rte;
route_head* trk;
* the code that considers the alternate sources.
*/
String
-mkshort_from_wpt(short_handle h, const waypoint* wpt)
+mkshort_from_wpt(short_handle h, const Waypoint* wpt)
{
/* This probably came from a Groundspeak Pocket Query
* so use the 'cache name' instead of the description field
return objects.value(key);
}
-static waypoint*
+static Waypoint*
mmo_get_waypt(mmo_data_t* data)
{
data->refct++;
if (data->refct == 1) {
- return (waypoint*)data->data;
+ return (Waypoint*)data->data;
} else {
- return new waypoint(*(waypoint*)data->data);
+ return new Waypoint(*(Waypoint*)data->data);
}
}
xfree(data->name);
}
if ((data->type == wptdata) && (data->refct == 0)) {
- delete (waypoint*)data->data;
+ delete (Waypoint*)data->data;
}
xfree(data);
}
#ifdef MMO_DBG
const char* sobj = "CObjWaypoint";
#endif
- waypoint* wpt;
+ Waypoint* wpt;
time_t time;
int rtelinks;
mmo_data_t** rtelink = NULL;
DBG((sobj, "name = \"%s\" [ visible=%s, id=0x%04X ]\n",
data->name, data->visible ? "yes" : "NO", data->objid));
- data->data = wpt = new waypoint;
+ data->data = wpt = new Waypoint;
wpt->shortname = QString::fromLatin1(data->name);
time = data->mtime;
DBG((sobj, "read next waypoint\n"));
tmp = mmo_read_object();
if (tmp && tmp->data && (tmp->type = wptdata)) {
- waypoint* wpt;
+ Waypoint* wpt;
/* FIXME: At this point this waypoint maybe not fully loaded (initialized) !!!
We need a final procedure to handle this !!! */
if (! tmp->loaded) {
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = 0;
wpt->longitude = 0;
xasprintf(&wpt->shortname, "\01%p", tmp);
DBG((sobj, "track has %d point(s)\n", tp));
for (ctp = 0; ctp < tp; ctp++) {
- waypoint* wpt;
+ Waypoint* wpt;
char unk;
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = gbfgetdbl(fin);
wpt->longitude = gbfgetdbl(fin);
}
static void
-mmo_finalize_rtept_cb(const waypoint* wptref)
+mmo_finalize_rtept_cb(const Waypoint* wptref)
{
- waypoint* wpt = (waypoint*)wptref;
+ Waypoint* wpt = (Waypoint*)wptref;
if ((wpt->shortname[0] == 1) && (wpt->latitude == 0) && (wpt->longitude == 0)) {
mmo_data_t* data;
- waypoint* wpt2;
+ Waypoint* wpt2;
#if NEW_STRINGS
#warning this code is on drugs.
abort();
#else
sscanf(wpt->shortname + 1, "%p", &data);
#endif
- wpt2 = (waypoint*)data->data;
+ wpt2 = (Waypoint*)data->data;
wpt->latitude = wpt2->latitude;
wpt->longitude = wpt2->longitude;
static void
-mmo_enum_waypt_cb(const waypoint* wpt)
+mmo_enum_waypt_cb(const Waypoint* wpt)
{
mmo_obj_ct++;
}
static void
-mmo_write_wpt_cb(const waypoint* wpt)
+mmo_write_wpt_cb(const Waypoint* wpt)
{
char* str;
String cx;
mmo_rte = (route_head*)rte;
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
QDateTime t = wpt->GetCreationTime();
if ((t.isValid()) && (t.toTime_t() < time)) {
time = t.toTime_t();
}
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
int objid = mmo_get_objid(wpt);
gbfputuint16(objid & 0x7FFF, fout);
}
int wordnum;
int bytenum;
int fixnum;
- static waypoint* trkpt;
- static waypoint* waypt;
+ static Waypoint* trkpt;
+ static Waypoint* waypt;
token = strtok(line, ",");
if ((token == NULL) || (strcmp(token, "$PMTKLOX") != 0)) {
}
if (global_opts.masked_objective & TRKDATAMASK) {
- trkpt = new waypoint;
+ trkpt = new Waypoint;
trkpt->SetCreationTime(timestamp);
trkpt->latitude = latitude;
trkpt->longitude = longitude;
}
if (global_opts.masked_objective & WPTDATAMASK) {
- waypt = new waypoint;
+ waypt = new Waypoint;
waypt->SetCreationTime(timestamp);
waypt->latitude = latitude;
waypt->longitude = longitude;
static route_head* trk_head = NULL;
static int add_trackpoint(int idx, unsigned long bmask, struct data_item* itm)
{
- waypoint* trk = new waypoint;
+ Waypoint* trk = new Waypoint;
if (global_opts.masked_objective& TRKDATAMASK && (trk_head == NULL || (mtk_info.track_event & MTK_EVT_START))) {
char spds[50];
)
) {
/* Button press -- create waypoint, start count at 1 */
- waypoint* w = new waypoint(*trk);
+ Waypoint* w = new Waypoint(*trk);
w->shortname = QString().sprintf("WP%06d", waypt_count()+1);
waypt_add(w);
NaviReadCache(const QXmlStreamReader& reader)
{
const QXmlStreamAttributes a = reader.attributes();
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
geocache_data* gc_data;
gc_data = wpt_tmp->AllocGCData();
if (a.hasAttribute("cache_id")) {
/*===================Utilities ==========================================*/
static void
-ng_convert_datum(waypoint* wpt)
+ng_convert_datum(Waypoint* wpt)
{
double lat, lon, east, north, alt;
static void
-ng_waypt_rd(const waypoint* wpt)
+ng_waypt_rd(const Waypoint* wpt)
{
char z[50];
double lat, lon;
for (int n = 0; n < nof_wp; ++n) {
- waypoint* wpt_tmp = new waypoint;
+ Waypoint* wpt_tmp = new Waypoint;
/* Read waypoint data */
static unsigned char* track_data_ptr;
static unsigned char* track_data_end;
static unsigned track_serial;
-static waypoint** route_waypts;
+static Waypoint** route_waypts;
static unsigned* route_ids;
static unsigned route_id_ptr;
ARG_TERMINATOR
};
-static void (*write_waypoint)(const waypoint*) = NULL;
+static void (*write_waypoint)(const Waypoint*) = NULL;
static void (*write_track_start)(const route_head* track) = NULL;
-static void (*write_track_point)(const waypoint* waypt) = NULL;
+static void (*write_track_point)(const Waypoint* waypt) = NULL;
static void (*write_track_end)(const route_head* track) = NULL;
static void (*write_route_start)(const route_head* track) = NULL;
-static void (*write_route_point)(const waypoint* waypt) = NULL;
+static void (*write_route_point)(const Waypoint* waypt) = NULL;
static void (*write_route_end)(const route_head* track) = NULL;
static int
}
static void
-free_waypoints(waypoint** waypts)
+free_waypoints(Waypoint** waypts)
{
- waypoint** wayptp;
+ Waypoint** wayptp;
for (wayptp = waypts; wayptp < waypts + MAX_WAYPOINTS; wayptp++) {
if (*wayptp) {
}
static unsigned
-compare_waypoints(const waypoint* waypt1, const waypoint* waypt2)
+compare_waypoints(const Waypoint* waypt1, const Waypoint* waypt2)
{
return waypt1->latitude == waypt2->latitude &&
waypt1->longitude == waypt2->longitude &&
}
static void
-decode_position(const unsigned char* buffer, waypoint* waypt)
+decode_position(const unsigned char* buffer, Waypoint* waypt)
{
waypt->latitude = le_read32(buffer + 0) / 10000000.0;
waypt->longitude = le_read32(buffer + 4) / 10000000.0;
}
static void
-encode_position(const waypoint* waypt, unsigned char* buffer)
+encode_position(const Waypoint* waypt, unsigned char* buffer)
{
le_write32(buffer + 0, (int)(waypt->latitude * 10000000));
le_write32(buffer + 4, (int)(waypt->longitude * 10000000));
return id;
}
-static waypoint*
+static Waypoint*
decode_waypoint(const unsigned char* buffer)
{
- waypoint* waypt = new waypoint;
+ Waypoint* waypt = new Waypoint;
decode_position(buffer + 12, waypt);
char* s = xstrdup((char*)buffer + 4);
}
static void
-encode_waypoint(const waypoint* waypt, unsigned char* buffer)
+encode_waypoint(const Waypoint* waypt, unsigned char* buffer)
{
buffer[0] = 0x00;
buffer[1] = 0x40;
buffer[31] = 0x7e;
}
-static waypoint*
+static Waypoint*
decode_trackpoint(const unsigned char* buffer)
{
- waypoint* waypt = new waypoint;
+ Waypoint* waypt = new Waypoint;
decode_position(buffer + 12, waypt);
waypt->SetCreationTime(decode_datetime(buffer + 22));
}
static void
-encode_trackpoint(const waypoint* waypt, unsigned serial, unsigned char* buffer)
+encode_trackpoint(const Waypoint* waypt, unsigned serial, unsigned char* buffer)
{
double x;
double y;
buffer[31] = 0x7e;
}
-static waypoint**
+static Waypoint**
serial_read_waypoints(void)
{
- waypoint** waypts = NULL;
+ Waypoint** waypts = NULL;
unsigned char information[32];
unsigned short total;
unsigned short start;
if (global_opts.masked_objective & RTEDATAMASK) {
- waypts = (waypoint**) xcalloc(MAX_WAYPOINTS, sizeof(waypoint*));
+ waypts = (Waypoint**) xcalloc(MAX_WAYPOINTS, sizeof(Waypoint*));
}
write_packet(PID_QRY_INFORMATION, NULL, 0);
}
static unsigned int
-serial_write_waypoint_packet(const waypoint* waypt)
+serial_write_waypoint_packet(const Waypoint* waypt)
{
unsigned char data[32];
unsigned char id[2];
}
static void
-serial_write_waypoint(const waypoint* waypt)
+serial_write_waypoint(const Waypoint* waypt)
{
serial_write_waypoint_packet(waypt);
}
}
static void
-serial_write_track_point(const waypoint* waypt)
+serial_write_track_point(const Waypoint* waypt)
{
if (track_data_ptr >= track_data_end) {
serial_write_track();
}
static void
-serial_read_routes(waypoint** waypts)
+serial_read_routes(Waypoint** waypts)
{
unsigned char information[32];
unsigned char routec;
} else if (waypts[id] == NULL) {
fatal(MYNAME ": Non-existent waypoint in route\n");
} else {
- route_add_wpt(route, new waypoint(*waypts[id]));
+ route_add_wpt(route, new Waypoint(*waypts[id]));
}
}
}
}
static void
-serial_write_route_point(const waypoint* waypt)
+serial_write_route_point(const Waypoint* waypt)
{
unsigned w;
if (w == MAX_WAYPOINTS) {
w = serial_write_waypoint_packet(waypt);
- route_waypts[w] = new waypoint(*waypt);
+ route_waypts[w] = new Waypoint(*waypt);
}
route_ids[route_id_ptr++] = w;
}
static void
-decode_sbp_position(const unsigned char* buffer, waypoint* waypt)
+decode_sbp_position(const unsigned char* buffer, Waypoint* waypt)
{
waypt->latitude = le_read32(buffer + 0) / 10000000.0;
waypt->longitude = le_read32(buffer + 4) / 10000000.0;
waypt->altitude = le_read32(buffer + 8) / 100.0;
}
-waypoint*
+Waypoint*
navilink_decode_logpoint(const unsigned char* buffer)
{
- waypoint* waypt = NULL;
- waypt = new waypoint;
+ Waypoint* waypt = NULL;
+ waypt = new Waypoint;
waypt->hdop = ((unsigned char)buffer[0]) * 0.2f;
waypt->sat = buffer[1];
}
static void
-file_write_waypoint(const waypoint* waypt)
+file_write_waypoint(const Waypoint* waypt)
{
unsigned char data[32];
}
static void
-file_write_track_point(const waypoint* waypt)
+file_write_track_point(const Waypoint* waypt)
{
unsigned char data[32];
}
static void
-file_write_route_point(const waypoint* waypt)
+file_write_route_point(const Waypoint* waypt)
{
}
}
} else {
if (serial_handle) {
- waypoint** waypts = NULL;
+ Waypoint** waypts = NULL;
if (global_opts.masked_objective & (WPTDATAMASK|RTEDATAMASK)) {
waypts = serial_read_waypoints();
#define SBP_RECORD_LEN 32
/* defined in navilink.c */
-waypoint* navilink_decode_logpoint(const unsigned char* buffer);
+Waypoint* navilink_decode_logpoint(const unsigned char* buffer);
unsigned navilink_checksum_packet(const unsigned char* packet, unsigned length);
/* defined in sbn.c */
for (i = 0; i < points; i++) {
int lat, lon;
- waypoint* wpt;
+ Waypoint* wpt;
lon = gbfgetint32(fin);
lat = gbfgetint32(fin);
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = GPS_Math_Semi_To_Deg(lat & 0x7FFFFFFF);
wpt->longitude = GPS_Math_Semi_To_Deg(lon);
}
static void
-navitel_enum_trkpts(const waypoint* wpt)
+navitel_enum_trkpts(const Waypoint* wpt)
{
trkpts++;
}
}
static void
-navitel_disp_trkpts(const waypoint* wpt)
+navitel_disp_trkpts(const Waypoint* wpt)
{
int lat, lon;
char mac[2 + 17 + 2 + 1]; /* "( " + MAC + " )" + null */
char desc[sizeof ssid - 1 + 15 + 1]; /* room for channel/speed */
double lat = 0, lon = 0;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int line_no = 0;
int stealth_num = 0, whitespace_num = 0;
long flags = 0;
continue;
}
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
if (stealth) {
if (!snmac) {
typedef struct {
unsigned long crc;
- waypoint* wpt;
+ Waypoint* wpt;
} htable_t;
static
* to make the testo script happy.
* */
- waypoint* wpt_a = ((const htable_t*)a)->wpt;
- waypoint* wpt_b = ((const htable_t*)b)->wpt;
+ Waypoint* wpt_a = ((const htable_t*)a)->wpt;
+ Waypoint* wpt_b = ((const htable_t*)b)->wpt;
#if NEW_STRINGS
return wpt_a->description.compare(wpt_b->description);
#else
#if NEWQ
// Why, oh, why is this format running over the entire waypoint list and
// modifying it? This seems wrong.
- extern QList<waypoint*> waypt_list;
- foreach(waypoint* waypointp, waypt_list) {
+ extern QList<Waypoint*> waypt_list;
+ foreach(Waypoint* waypointp, waypt_list) {
bh->wpt = waypointp;
#else
queue* elem, *tmp;
extern queue waypt_head;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- bh->wpt = (waypoint*) elem;
+ bh->wpt = (Waypoint*) elem;
#endif
QString snptr = bh->wpt->shortname;
QString tmp_sn = snptr.toLower();
static short_handle mkshort_handle;
static preferred_posn_type posn_type;
static struct tm tm;
-static waypoint* curr_waypt;
-static waypoint* last_waypt;
+static Waypoint* curr_waypt;
+static Waypoint* last_waypt;
static void* gbser_handle;
static const char* posn_fname;
static queue pcmpt_head;
static int datum;
static int had_checksum;
-static waypoint* nmea_rd_posn(posn_status*);
+static Waypoint* nmea_rd_posn(posn_status*);
static void nmea_rd_posn_init(const char* fname);
arglist_t nmea_args[] = {
}
static void
-nmea_add_wpt(waypoint* wpt, route_head* trk)
+nmea_add_wpt(Waypoint* wpt, route_head* trk)
{
if (datum != DATUM_WGS84) {
double lat, lon, alt;
}
static void
-nmea_release_wpt(waypoint* wpt)
+nmea_release_wpt(Waypoint* wpt)
{
if (wpt && ((wpt->Q.next == NULL) || (wpt->Q.next == &wpt->Q))) {
/* This waypoint isn't queued.
* it as one waypoint.
*/
if (getposn) {
- waypoint* wpt;
+ Waypoint* wpt;
posn_status st;
nmea_rd_posn_init(fname);
wpt = nmea_rd_posn(&st);
}
static void
-nmea_set_waypoint_time(waypoint* wpt, struct tm* time, double fsec)
+nmea_set_waypoint_time(Waypoint* wpt, struct tm* time, double fsec)
{
if (time->tm_year == 0) {
wpt->SetCreationTime(((((time_t)time->tm_hour * 60) + time->tm_min) * 60) + time->tm_sec, lround(1000.0 * fsec));
double hmsd;
int hms;
char valid = 0;
- waypoint* waypt;
+ Waypoint* waypt;
if (trk_head == NULL) {
trk_head = route_head_alloc();
hms = hms / 100;
tm.tm_hour = hms % 100;
- waypt = new waypoint;
+ waypt = new Waypoint;
nmea_set_waypoint_time(waypt, &tm, fsec);
int nsats = 0;
double hdop;
char altunits;
- waypoint* waypt;
+ Waypoint* waypt;
double fsec;
if (trk_head == NULL) {
hms = hms / 100;
tm.tm_hour = (long) hms % 100;
- waypt = new waypoint;
+ waypt = new Waypoint;
nmea_set_waypoint_time(waypt, &tm, fsec);
char fix;
unsigned int dmy;
double speed,course;
- waypoint* waypt;
+ Waypoint* waypt;
double fsec;
char* dmybuf;
int i;
}
/* This point is both a waypoint and a trackpoint. */
if (amod_waypoint) {
- waypt_add(new waypoint(*curr_waypt));
+ waypt_add(new Waypoint(*curr_waypt));
amod_waypoint = 0;
}
return;
}
- waypt = new waypoint;
+ waypt = new Waypoint;
WAYPT_SET(waypt, speed, KNOTS_TO_MPS(speed));
/* This point is both a waypoint and a trackpoint. */
if (amod_waypoint) {
- waypt_add(new waypoint(*waypt));
+ waypt_add(new Waypoint(*waypt));
amod_waypoint = 0;
}
}
static void
gpwpl_parse(char* ibuf)
{
- waypoint* waypt;
+ Waypoint* waypt;
double latdeg, lngdeg;
char latdir, lngdir;
char sname[99];
&lngdeg,&lngdir,
sname);
- waypt = new waypoint;
+ waypt = new Waypoint;
if (latdir == 'S') {
latdeg = -latdeg;
}
if (lat || lon) {
- curr_waypt = new waypoint;
+ curr_waypt = new Waypoint;
curr_waypt->longitude = pcmpt_deg(lon);
curr_waypt->latitude = pcmpt_deg(lat);
trk_head = route_head_alloc();
track_add_head(trk_head);
QUEUE_FOR_EACH(&pcmpt_head, elem, tmp) {
- waypoint* wpt = (waypoint*) dequeue(elem);
+ Waypoint* wpt = (Waypoint*) dequeue(elem);
nmea_add_wpt(wpt, trk_head);
}
}
if (tm.tm_year == 0) {
queue* elem, *temp;
- waypoint* prev = NULL;
+ Waypoint* prev = NULL;
time_t delta_tm;
if (optdate == NULL) {
delta_tm = mkgmtime(&opt_tm);
QUEUE_FOR_EACH(&track->waypoint_list, elem, temp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
wpt->creation_time += delta_tm;
if ((prev != NULL) && (prev->creation_time > wpt->creation_time)) { /* go over midnight ? */
/* go backward through the track and complete timestamps */
for (elem = QUEUE_LAST(&track->waypoint_list); elem != &track->waypoint_list; elem=elem->prev) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (wpt->wpt_flags.fmt_use != 0) {
time_t dt;
return 0;
}
-static waypoint*
+static Waypoint*
nmea_rd_posn(posn_status* posn_status)
{
char ibuf[1024];
nmea_parse_one_line(ibuf);
if (lt != last_read_time) {
if (last_read_time) {
- waypoint* w = curr_waypt;
+ Waypoint* w = curr_waypt;
lt = last_read_time;
curr_waypt = NULL;
}
static void
-nmea_wayptpr(const waypoint* wpt)
+nmea_wayptpr(const Waypoint* wpt)
{
char obuf[200];
double lat,lon;
}
void
-nmea_trackpt_pr(const waypoint* wpt)
+nmea_trackpt_pr(const Waypoint* wpt)
{
char obuf[200];
char fix='0';
}
static void
-nmea_wr_posn(waypoint* wpt)
+nmea_wr_posn(Waypoint* wpt)
{
nmea_trackpt_pr(wpt);
}
QString zip1, zip2, city, street, number;
route_head* route;
- waypoint* wpt;
+ Waypoint* wpt;
route = route_head_alloc();
route_add_head(route);
/* for a quiet compiler */
zip1 = zip2 = city = street = number = QString();
- wpt = new waypoint;
+ wpt = new Waypoint;
column = -1;
c = csv_lineparse(str, "|", "", column++);
}
static void
-nmn4_write_waypt(const waypoint* wpt)
+nmn4_write_waypt(const Waypoint* wpt)
{
char city[128], street[128], zipc[32], number[32];
#define MYNAME "osm"
-static QHash<QString, const waypoint*> waypoints;
+static QHash<QString, const Waypoint*> waypoints;
static QHash<QString, int> keys;
static QHash<QString, const struct osm_icon_mapping_s*> values;
static int skip_rte;
static route_head* rte;
-static waypoint* wpt;
+static Waypoint* wpt;
static xg_callback osm_node, osm_node_tag, osm_node_end;
static xg_callback osm_way, osm_way_nd, osm_way_tag, osm_way_end;
static void
osm_node(xg_string args, const QXmlStreamAttributes* attrv)
{
- wpt = new waypoint;
+ wpt = new Waypoint;
if (attrv->hasAttribute("id")) {
QString atstr = attrv->value("id").toString();
{
if (attrv->hasAttribute("ref")) {
QString atstr = attrv->value("ref").toString();
- waypoint* tmp;
- const waypoint* ctmp;
+ Waypoint* tmp;
+ const Waypoint* ctmp;
if (waypoints.contains(atstr)) {
ctmp = waypoints.value(atstr);
- tmp = new waypoint(*ctmp);
+ tmp = new Waypoint(*ctmp);
route_add_wpt(rte, tmp);
} else {
warning(MYNAME ": Way reference id \"%s\" wasn't listed under nodes!\n", CSTR(atstr));
}
static void
-osm_disp_feature(const waypoint* wpt)
+osm_disp_feature(const Waypoint* wpt)
{
const osm_icon_mapping_t* map;
}
static void
-osm_release_ids(const waypoint* wpt)
+osm_release_ids(const Waypoint* wpt)
{
if (wpt && wpt->extra_data) {
- waypoint* tmp = (waypoint*)wpt;
+ Waypoint* tmp = (Waypoint*)wpt;
xfree(tmp->extra_data);
tmp->extra_data = NULL;
}
}
static QString
-osm_name_from_wpt(const waypoint* wpt)
+osm_name_from_wpt(const Waypoint* wpt)
{
QString name = QString("%1\01%2\01%3")
#if NEW_STRINGS
}
static void
-osm_waypt_disp(const waypoint* wpt)
+osm_waypt_disp(const Waypoint* wpt)
{
QString name = osm_name_from_wpt(wpt);
id = (int*) xmalloc(sizeof(*id));
*id = --node_id;
- ((waypoint*)(wpt))->extra_data = id;
+ ((Waypoint*)(wpt))->extra_data = id;
gbfprintf(fout, " <node id='%d' visible='true' lat='%0.7f' lon='%0.7f'", *id, wpt->latitude, wpt->longitude);
if (wpt->creation_time.isValid()) {
}
static void
-osm_rtept_disp(const waypoint* wpt_ref)
+osm_rtept_disp(const Waypoint* wpt_ref)
{
QString name = osm_name_from_wpt(wpt_ref);
- const waypoint* wpt;
+ const Waypoint* wpt;
if (skip_rte) {
return;
int keyw,i;
double rwert;
route_head* route_head = NULL;
- waypoint* wpt;
+ Waypoint* wpt;
int sym_cnt;
int lineno = 0;
}
break;
case KEY_PUNKTE :
- isSection = SECTION_PUNKTE; // Linie, Fläche
+ isSection = SECTION_PUNKTE; // Linie, Fl�che
break;
#ifdef WITH_BITMAP
case KEY_PATH :
switch (aktTyp) {
#ifdef WITH_BITMAP
case 1: // Bitmap
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = aktY;
wpt->longitude = aktX;
wpt->altitude = 0.0;
isSection = SECTION_SYMBOL;
break;
case 3: // Linie
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = aktY;
wpt->longitude = aktX;
wpt->altitude = 0.0;
route_add_wpt(route_head, wpt);
break;
- case 4: // Fläche
+ case 4: // Fl�che
break;
case 5: // Rechteck
break;
gbfprintf(fpout,"CenterLat=%.8lf\n",govl_sum_n/govl_sumcnt); // precision 8 = better than 1mm
gbfprintf(fpout,"CenterLong=%.8lf\n",govl_sum_e/govl_sumcnt);
} else {
- gbfprintf(fpout,"CenterLong=10.52374295\n"); // Braunschweiger Löwe, Mittelpunkt der Welt :-)
+ gbfprintf(fpout,"CenterLong=10.52374295\n"); // Braunschweiger L�we, Mittelpunkt der Welt :-)
gbfprintf(fpout,"CenterLat=52.26474445\n");
}
gbfprintf(fpout,"RefOn=0\n");
govl_symbol_cnt++;
}
-static void symbol_point(const waypoint* wpt)
+static void symbol_point(const Waypoint* wpt)
{
double east,north;
static void symbol_deinit(const route_head* hd)
{
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
int i;
double lat1,lon1,lat2,lon2;
double lats,lons,late,lone;
dist = 0.0;
i = 0;
QUEUE_FOR_EACH(&(hd->waypoint_list), elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
lat2 = RAD(waypointp->latitude);
lon2 = RAD(waypointp->longitude);
if (i) {
i = 0;
elem = QUEUE_FIRST(&(hd->waypoint_list));
while (elem!=&(hd->waypoint_list) && dd<dist/2.0) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
lat2 = RAD(waypointp->latitude);
lon2 = RAD(waypointp->longitude);
if (i) {
govl_dir = 0.0; // restore
}
-static void overlay_waypt_pr(const waypoint* waypointp)
+static void overlay_waypt_pr(const Waypoint* waypointp)
{
const char* oname;
}
void
-ozi_get_time_str(const waypoint* waypointp, char* buff, gbsize_t buffsz)
+ozi_get_time_str(const Waypoint* waypointp, char* buff, gbsize_t buffsz)
{
if (waypointp->creation_time.isValid()) {
double time = (waypt_time(waypointp) / SECONDS_PER_DAY) + DAYS_SINCE_1990;
}
void
-ozi_set_time_str(const QString& str, waypoint* waypointp)
+ozi_set_time_str(const QString& str, Waypoint* waypointp)
{
double ozi_time = str.toDouble();
}
static void
-ozi_convert_datum(waypoint* wpt)
+ozi_convert_datum(Waypoint* wpt)
{
if (datum != DATUM_WGS84) {
double lat, lon, alt;
}
static void
-ozi_track_disp(const waypoint* waypointp)
+ozi_track_disp(const Waypoint* waypointp)
{
double alt;
char ozi_time[16];
}
static void
-ozi_route_disp(const waypoint* waypointp)
+ozi_route_disp(const Waypoint* waypointp)
{
char ozi_time[16];
}
static void
-ozi_parse_waypt(int field, const QString& str, waypoint* wpt_tmp, ozi_fsdata* fsdata)
+ozi_parse_waypt(int field, const QString& str, Waypoint* wpt_tmp, ozi_fsdata* fsdata)
{
double alt;
}
static void
-ozi_parse_track(int field, char* str, waypoint* wpt_tmp, char* trk_name)
+ozi_parse_track(int field, char* str, Waypoint* wpt_tmp, char* trk_name)
{
double alt;
}
static void
-ozi_parse_routepoint(int field, char* str, waypoint* wpt_tmp)
+ozi_parse_routepoint(int field, char* str, Waypoint* wpt_tmp)
{
if (*str == '\0') {
return;
}
static void
-ozi_parse_routeheader(int field, const QString& str, waypoint* wpt_tmp)
+ozi_parse_routeheader(int field, const QString& str, Waypoint* wpt_tmp)
{
switch (field) {
{
QString buff;
char* trk_name = NULL;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int i;
int linecount = 0;
if (buff.contains(',')) {
bool ozi_fsdata_used = false;
ozi_fsdata* fsdata = ozi_alloc_fsdata();
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
/* data delimited by commas, possibly enclosed in quotes. */
char* orig_s = xstrdup(CSTR(buff));
}
static void
-ozi_waypt_pr(const waypoint* wpt)
+ozi_waypt_pr(const Waypoint* wpt)
{
static int index = 0;
double alt;
char date[10];
char time[9];
char month[4];
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
char* buff;
struct tm tm;
route_head* track = NULL;
name[sizeof(name)-1] = '\0';
desc[sizeof(desc)-1] = '\0';
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->altitude = alt;
cp = lrtrim(name);
if (*cp != '\0') {
wpt_tmp->latitude = ddmm2degrees(lat);
}
if (route != NULL) {
- route_add_wpt(route, new waypoint(*wpt_tmp));
+ route_add_wpt(route, new Waypoint(*wpt_tmp));
}
waypt_add(wpt_tmp);
points++;
if (tm.tm_year < 70) {
tm.tm_year += 100;
}
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->SetCreationTime(mkgmtime(&tm));
if (read_as_degrees) {
wpt_tmp->longitude = lon;
}
static void
-gpsutil_disp(const waypoint* wpt)
+gpsutil_disp(const Waypoint* wpt)
{
double lon,lat;
int icon_token = 0;
}
void
-pcx_track_disp(const waypoint* wpt)
+pcx_track_disp(const Waypoint* wpt)
{
double lon,lat;
char tbuf[100];
while (1 == gbfread(&bc, sizeof(bc), 1, file_in)) {
struct tm tm;
- waypoint* wpt;
+ Waypoint* wpt;
if (strcmp(bc.id, header_id) != 0) {
fatal(MYNAME ": invalid breadcrumb header in input file.\n");
tm.tm_min = le_readu16(&bc.minute);
tm.tm_sec = le_readu16(&bc.second);
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = le_read_float(&bc.latitude);
wpt->longitude = le_read_float(&bc.longitude);
wpt->altitude = FEET_TO_METERS(le_read_float(&bc.altitude));
}
static void
-pocketfms_waypt_disp(const waypoint* wpt)
+pocketfms_waypt_disp(const Waypoint* wpt)
{
struct breadcrumb bc;
struct tm* tm;
static int isFirst = 1;
static route_head* route = NULL;
-static waypoint* wpt_to, *wpt_from;
+static Waypoint* wpt_to, *wpt_from;
static double dest_altitude;
#define MYNAME "PocketFMS FlightPlan"
rd_deinit(void)
{
if (route != NULL) {
- waypoint* head = (waypoint*) QUEUE_FIRST(&route->waypoint_list);
- waypoint* tail = (waypoint*) QUEUE_LAST(&route->waypoint_list);
+ Waypoint* head = (Waypoint*) QUEUE_FIRST(&route->waypoint_list);
+ Waypoint* tail = (Waypoint*) QUEUE_LAST(&route->waypoint_list);
if (head != NULL) {
route->rte_name = head->shortname;
}
void wpt_s(xg_string args, const QXmlStreamAttributes* unused)
{
if (isFirst == 1) {
- wpt_from = new waypoint;
+ wpt_from = new Waypoint;
route = route_head_alloc();
route->rte_desc="PocketFMS flightplan";
route_add_head(route);
}
- wpt_to = new waypoint;
+ wpt_to = new Waypoint;
}
void wpt_e(xg_string args, const QXmlStreamAttributes* unused)
if (isFirst == 1) {
route_add_wpt(route, wpt_from);
if (doing_wpts) {
- waypt_add(new waypoint(*wpt_from));
+ waypt_add(new Waypoint(*wpt_from));
}
wpt_from = NULL;
isFirst = 0;
}
route_add_wpt(route, wpt_to);
if (doing_wpts) {
- waypt_add(new waypoint(*wpt_to));
+ waypt_add(new Waypoint(*wpt_to));
}
wpt_to = NULL;
}
int linecount = 0;
while ((buff = gbfgetstr(file_in))) {
char* s;
- waypoint* wpt;
+ Waypoint* wpt;
rtrim(buff);
if (strlen(buff) == 0) {
break;
}
linecount++;
- wpt = new waypoint;
+ wpt = new Waypoint;
s = buff;
s = csv_lineparse(s, "\\w", "", linecount);
if (!s) {
}
static void
-enigma_waypt_disp(const waypoint* wpt)
+enigma_waypt_disp(const Waypoint* wpt)
{
char* t;
#if NEW_STRINGS
polygon_process(void)
{
queue* elem, * tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
extra_data* ed;
double lat1, lon1, lat2, lon2;
double olat, olon;
} else if (lat1 != BADVAL && lon1 != BADVAL &&
lat2 != BADVAL && lon2 != BADVAL) {
#if NEWQ
- foreach(waypoint* waypointp, waypt_list) {
+ foreach(Waypoint* waypointp, waypt_list) {
#else
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*)elem;
+ waypointp = (Waypoint*)elem;
#endif
if (waypointp->extra_data) {
ed = (extra_data*) waypointp->extra_data;
gbfclose(file_in);
#if NEWQ
- foreach(waypoint* wp, waypt_list) {
+ foreach(Waypoint* wp, waypt_list) {
#else
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypoint* wp = (waypoint*) elem;
+ Waypoint* wp = (Waypoint*) elem;
#endif
ed = (extra_data*) wp->extra_data;
wp->extra_data = NULL;
position_runqueue(queue* q, int nelems, int qtype)
{
queue* elem, * tmp;
- waypoint** comp;
+ Waypoint** comp;
int* qlist;
double dist, diff_time;
int i = 0, j, anyitem;
- comp = (waypoint**) xcalloc(nelems, sizeof(*comp));
+ comp = (Waypoint**) xcalloc(nelems, sizeof(*comp));
qlist = (int*) xcalloc(nelems, sizeof(*qlist));
QUEUE_FOR_EACH(q, elem, tmp) {
- comp[i] = (waypoint*)elem;
+ comp[i] = (Waypoint*)elem;
qlist[i] = 0;
i++;
}
}
static void
-position_noop_w(const waypoint* w)
+position_noop_w(const Waypoint* w)
{
}
* MRCB
*/
static void
-psit_waypoint_r(gbfile* psit_file, waypoint** wpt)
+psit_waypoint_r(gbfile* psit_file, Waypoint** wpt)
{
int garmin_icon_num;
- waypoint* thisWaypoint;
+ Waypoint* thisWaypoint;
if (strlen(psit_current_token) > 0) {
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
thisWaypoint->latitude = atof(psit_current_token);
* MRCB
*/
static void
-psit_waypoint_w(gbfile* psit_file, const waypoint* wpt)
+psit_waypoint_w(gbfile* psit_file, const Waypoint* wpt)
{
int icon;
const char* ident;
}
static void
-psit_waypoint_w_wrapper(const waypoint* wpt)
+psit_waypoint_w_wrapper(const Waypoint* wpt)
{
psit_waypoint_w(psit_file_out, wpt);
}
route_head* rte_head;
unsigned int rte_count;
- waypoint* thisWaypoint;
+ Waypoint* thisWaypoint;
psit_getToken(psit_file,psit_current_token,sizeof(psit_current_token), ltrimEOL);
while (psit_isKnownToken(psit_current_token) != 0) {
if (strlen(psit_current_token) > 0) {
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
thisWaypoint->latitude = atof(psit_current_token);
unsigned int rte_datapoints;
char* rname;
- waypoint* testwpt;
+ Waypoint* testwpt;
time_t uniqueValue = 0;
int allWptNameLengths;
char* c;
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- testwpt = (waypoint*)elem;
+ testwpt = (Waypoint*)elem;
if (rte_datapoints == 0) {
uniqueValue = testwpt->GetCreationTime().toTime_t();
}
route_head* track_head = NULL;
unsigned int trk_count;
- waypoint* thisWaypoint;
+ Waypoint* thisWaypoint;
psit_getToken(psit_file,psit_current_token,sizeof(psit_current_token), ltrimEOL);
if (strlen(psit_current_token) == 0) {
while (psit_isKnownToken(psit_current_token) != 0) {
if (strlen(psit_current_token) > 0) {
- thisWaypoint = new waypoint;
+ thisWaypoint = new Waypoint;
thisWaypoint->latitude = atof(psit_current_token);
char hdr[30];
unsigned int trk_datapoints;
char* tname;
- waypoint* testwpt;
+ Waypoint* testwpt;
time_t uniqueValue = 0;
queue* elem, *tmp;
QUEUE_FOR_EACH(&trk->waypoint_list, elem, tmp) {
if (trk_datapoints == 0) {
- testwpt = (waypoint*)elem;
+ testwpt = (Waypoint*)elem;
uniqueValue = testwpt->GetCreationTime().toTime_t();
}
trk_datapoints++;
* MRCB
*/
static void
-psit_trackdatapoint_w(gbfile* psit_file, const waypoint* wpt)
+psit_trackdatapoint_w(gbfile* psit_file, const Waypoint* wpt)
{
time_t t = wpt->GetCreationTime().toTime_t();
struct tm* tmTime = gmtime(&t);
}
static void
-psit_trackdatapoint_w_wrapper(const waypoint* wpt)
+psit_trackdatapoint_w_wrapper(const Waypoint* wpt)
{
psit_trackdatapoint_w(psit_file_out, wpt);
}
static void
psit_read(void)
{
- waypoint* wpt;
+ Waypoint* wpt;
route_head* rte;
route_head* trk;
static char* routename = NULL;
static int maxct;
-static waypoint* home_pos;
+static Waypoint* home_pos;
typedef struct {
double distance;
static int
dist_comp(const void* a, const void* b)
{
- const waypoint* x1 = *(waypoint**)a;
- const waypoint* x2 = *(waypoint**)b;
+ const Waypoint* x1 = *(Waypoint**)a;
+ const Waypoint* x2 = *(Waypoint**)b;
extra_data* x1e = (extra_data*) x1->extra_data;
extra_data* x2e = (extra_data*) x2->extra_data;
radius_process(void)
{
queue* elem, * tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
double dist;
- waypoint** comp;
+ Waypoint** comp;
int i, wc;
queue temp_head;
route_head* rte_head = NULL;
#if NEWQ
- foreach(waypoint* waypointp, waypt_list) {
+ foreach(Waypoint* waypointp, waypt_list) {
#else
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*)elem;
+ waypointp = (Waypoint*)elem;
#endif
dist = gc_distance(waypointp->latitude,
waypointp->longitude,
wc = waypt_count();
QUEUE_INIT(&temp_head);
- comp = (waypoint**) xcalloc(wc, sizeof(*comp));
+ comp = (Waypoint**) xcalloc(wc, sizeof(*comp));
i = 0;
*/
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypoint* wp = (waypoint*) elem;
+ Waypoint* wp = (Waypoint*) elem;
comp[i] = wp;
waypt_del(wp);
i++;
}
if (!nosort) {
- qsort(comp, wc, sizeof(waypoint*), dist_comp);
+ qsort(comp, wc, sizeof(Waypoint*), dist_comp);
}
if (routename) {
* on through in the modified order.
*/
for (i = 0; i < wc; i++) {
- waypoint* wp = comp[i];
+ Waypoint* wp = comp[i];
xfree(wp->extra_data);
wp->extra_data = NULL;
maxct = 0;
}
- home_pos = (waypoint*) xcalloc(sizeof(*home_pos), 1);
+ home_pos = (Waypoint*) xcalloc(sizeof(*home_pos), 1);
if (latopt) {
home_pos->latitude = atof(latopt);
int i, points;
route_head* head;
- waypoint* prev = NULL;
+ Waypoint* prev = NULL;
time_t time = gpsbabel_time;
if (opt_seed) {
for (i = 0; i < points; i++) {
- waypoint* wpt;
+ Waypoint* wpt;
garmin_fs_t* gmsd;
- wpt = new waypoint;
+ wpt = new Waypoint;
gmsd = garmin_fs_alloc(-1);
fs_chain_add(&wpt->fs, (format_specific_data*) gmsd);
static inifile_t* fin;
static gbfile* fout;
-static waypoint** waypt_table;
+static Waypoint** waypt_table;
static short_handle hshort_wpt, hshort_rte;
static int waypt_table_sz, waypt_table_ct;
static int rte_index, rte_wpt_index;
static void
raymarine_read(void)
{
- waypoint* wpt;
+ Waypoint* wpt;
unsigned int ix;
unsigned int rx;
break;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->shortname = name;
wpt->latitude = atof(lat);
wpt->longitude = atof(lon);
for (wx = 0; wx < 0x3FFF; wx++) {
char buff[32];
char* str;
- waypoint* wpt;
+ Waypoint* wpt;
snprintf(buff, sizeof(buff), "Mk%d", wx);
str = inifile_readstr(fin, sect, buff);
fatal(MYNAME ": No associated waypoint for route point %s (Route %s)!\n",
str, CSTRc(rte->rte_name));
- route_add_wpt(rte, new waypoint(*wpt));
+ route_add_wpt(rte, new Waypoint(*wpt));
}
}
}
/* make waypoint shortnames unique */
static char
-same_points(const waypoint* A, const waypoint* B)
+same_points(const Waypoint* A, const Waypoint* B)
{
return ( /* !!! We are case-sensitive !!! */
#if NEW_STRINGS
}
static void
-register_waypt(const waypoint* ref, const char is_rtept)
+register_waypt(const Waypoint* ref, const char is_rtept)
{
int i;
- waypoint* wpt = (waypoint*) ref;
+ Waypoint* wpt = (Waypoint*) ref;
for (i = 0; i < waypt_table_ct; i++) {
- waypoint* cmp = waypt_table[i];
+ Waypoint* cmp = waypt_table[i];
if (same_points(wpt, cmp)) {
wpt->extra_data = cmp->extra_data;
if (waypt_table_ct >= waypt_table_sz) {
waypt_table_sz += 32;
if (waypt_table) {
- waypt_table = (waypoint**) xrealloc(waypt_table, waypt_table_sz * sizeof(wpt));
+ waypt_table = (Waypoint**) xrealloc(waypt_table, waypt_table_sz * sizeof(wpt));
} else {
- waypt_table = (waypoint**) xmalloc(waypt_table_sz * sizeof(wpt));
+ waypt_table = (Waypoint**) xmalloc(waypt_table_sz * sizeof(wpt));
}
}
wpt->extra_data = (void*)mkshort(hshort_wpt, CSTRc(wpt->shortname));
- waypt_table[waypt_table_ct] = (waypoint*)wpt;
+ waypt_table[waypt_table_ct] = (Waypoint*)wpt;
waypt_table_ct++;
}
static void
-enum_waypt_cb(const waypoint* wpt)
+enum_waypt_cb(const Waypoint* wpt)
{
- register_waypt((waypoint*) wpt, 0);
+ register_waypt((Waypoint*) wpt, 0);
}
static void
-enum_rtept_cb(const waypoint* wpt)
+enum_rtept_cb(const Waypoint* wpt)
{
- register_waypt((waypoint*) wpt, 1);
+ register_waypt((Waypoint*) wpt, 1);
}
static int
qsort_cb(const void* a, const void* b)
{
- const waypoint* wa = *(waypoint**)a;
- const waypoint* wb = *(waypoint**)b;
+ const Waypoint* wa = *(Waypoint**)a;
+ const Waypoint* wb = *(Waypoint**)b;
#if NEW_STRINGS
return wa->shortname.compare(wb->shortname);
#else
}
static void
-write_waypoint(gbfile* fout, const waypoint* wpt, const int waypt_no, const char* location)
+write_waypoint(gbfile* fout, const Waypoint* wpt, const int waypt_no, const char* location)
{
QString notes;
char* name;
}
static void
-write_route_wpt_cb(const waypoint* wpt)
+write_route_wpt_cb(const Waypoint* wpt)
{
static const char* items[] = {
"Cog",
raymarine_write(void)
{
int i;
- waypoint* wpt;
+ Waypoint* wpt;
waypt_table_sz = 0;
waypt_table_ct = 0;
/* write out waypoint summary */
for (i = 0; i < waypt_table_ct; i++) {
- waypoint* wpt = waypt_table[i];
+ Waypoint* wpt = waypt_table[i];
write_waypoint(fout, wpt, i, opt_location);
}
/*
* reverse_route_wpt fixes up the waypoint flag new_trkseg
*/
-static void reverse_route_wpt(const waypoint* waypointp)
+static void reverse_route_wpt(const Waypoint* waypointp)
{
/* Cast away const-ness */
- waypoint* wpp = (waypoint*) waypointp;
+ Waypoint* wpp = (Waypoint*) waypointp;
int curr_new_trkseg;
static int trk_head_ct;
static int trk_waypts;
-extern void update_common_traits(const waypoint* wpt);
+extern void update_common_traits(const Waypoint* wpt);
void
route_init(void)
}
static void
-any_route_add_wpt(route_head* rte, waypoint* wpt, int* ct, int synth, const QString& namepart, int number_digits)
+any_route_add_wpt(route_head* rte, Waypoint* wpt, int* ct, int synth, const QString& namepart, int number_digits)
{
ENQUEUE_TAIL(&rte->waypoint_list, &wpt->Q);
rte->rte_waypt_ct++; /* waypoints in this route */
}
void
-route_add_wpt_named(route_head* rte, waypoint* wpt, const QString& namepart, int number_digits)
+route_add_wpt_named(route_head* rte, Waypoint* wpt, const QString& namepart, int number_digits)
{
// First point in a route is always a new segment.
// This improves compatibility when reading from
}
void
-route_add_wpt(route_head* rte, waypoint* wpt)
+route_add_wpt(route_head* rte, Waypoint* wpt)
{
const char RPT[] = "RPT";
route_add_wpt_named(rte, wpt, RPT, 3);
}
void
-track_add_wpt_named(route_head* rte, waypoint* wpt, const QString& namepart, int number_digits)
+track_add_wpt_named(route_head* rte, Waypoint* wpt, const QString& namepart, int number_digits)
{
// First point in a track is always a new segment.
// This improves compatibility when reading from
}
void
-track_add_wpt(route_head* rte, waypoint* wpt)
+track_add_wpt(route_head* rte, Waypoint* wpt)
{
const char RPT[] = "RPT";
track_add_wpt_named(rte, wpt, RPT, 3);
}
-waypoint*
+Waypoint*
route_find_waypt_by_name(route_head* rh, const char* name)
{
queue* elem, *tmp;
QUEUE_FOR_EACH(&rh->waypoint_list, elem, tmp) {
- waypoint* waypointp = (waypoint*) elem;
+ Waypoint* waypointp = (Waypoint*) elem;
if (waypointp->shortname == name) {
return waypointp;
}
}
static void
-any_route_del_wpt(route_head* rte, waypoint* wpt, int* ct)
+any_route_del_wpt(route_head* rte, Waypoint* wpt, int* ct)
{
- if (wpt->wpt_flags.new_trkseg && wpt != (waypoint*)QUEUE_LAST(&rte->waypoint_list)) {
- waypoint* wpt_next = (waypoint*)QUEUE_NEXT(&wpt->Q);
+ if (wpt->wpt_flags.new_trkseg && wpt != (Waypoint*)QUEUE_LAST(&rte->waypoint_list)) {
+ Waypoint* wpt_next = (Waypoint*)QUEUE_NEXT(&wpt->Q);
wpt_next->wpt_flags.new_trkseg = 1;
}
wpt->wpt_flags.new_trkseg = 0;
}
void
-route_del_wpt(route_head* rte, waypoint* wpt)
+route_del_wpt(route_head* rte, Waypoint* wpt)
{
any_route_del_wpt(rte, wpt, &rte_waypts);
}
void
-track_del_wpt(route_head* rte, waypoint* wpt)
+track_del_wpt(route_head* rte, Waypoint* wpt)
{
any_route_del_wpt(rte, wpt, &trk_waypts);
}
return;
}
QUEUE_FOR_EACH(&rh->waypoint_list, elem, tmp) {
- waypoint* waypointp;
- waypointp = (waypoint*) elem;
+ Waypoint* waypointp;
+ waypointp = (Waypoint*) elem;
(*cb)(waypointp);
}
rte_new->rte_num = rte_old->rte_num;
any_route_add_head(rte_new, *dst);
QUEUE_FOR_EACH(&rte_old->waypoint_list, elem2, tmp2) {
- any_route_add_wpt(rte_new, new waypoint(*(waypoint*)elem2), dst_wpt_count, 0, RPT, 3);
+ any_route_add_wpt(rte_new, new Waypoint(*(Waypoint*)elem2), dst_wpt_count, 0, RPT, 3);
}
(*dst_count)++;
}
}
static void
-route_restore_wpt(const waypoint* wpt)
+route_restore_wpt(const Waypoint* wpt)
{
(void)wpt;
rte_waypts++;
}
static void
-track_restore_wpt(const waypoint* wpt)
+track_restore_wpt(const Waypoint* wpt)
{
(void)wpt;
trk_waypts++;
*/
void track_recompute(const route_head* trk, computed_trkdata** trkdatap)
{
- waypoint first;
- waypoint* thisw;
- waypoint* prev = &first;
+ Waypoint first;
+ Waypoint* thisw;
+ Waypoint* prev = &first;
queue* elem, *tmp;
int tkpt = 0;
int pts_hrt = 0;
QUEUE_FOR_EACH((queue*)&trk->waypoint_list, elem, tmp) {
double tlat, tlon, plat, plon, dist;
- thisw = (waypoint*)elem;
+ thisw = (Waypoint*)elem;
/*
* gcdist and heading want radians, not degrees.
uint16_t coordcount;
route_head* track_head = NULL;
route_head* old_track_head = NULL;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
char* routename = NULL;
double seglen = 0.0;
int32_t starttime = 0;
lon = (0x80000000UL -
le_read32(&latlon->lat)) / (double)(0x800000);
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = lat;
wpt_tmp->longitude = -lon;
if (control) {
double lat;
double lon;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
lat = (0x80000000UL -
le_read32(&latlon->lat)) /
if (old_track_head) {
if (timesynth) {
track_add_wpt(old_track_head,
- new waypoint(*wpt_tmp));
+ new Waypoint(*wpt_tmp));
} else {
route_add_wpt(old_track_head,
- new waypoint(*wpt_tmp));
+ new Waypoint(*wpt_tmp));
}
old_track_head = NULL;
}
}
static void
-decode_sbn_datetime(const unsigned char* buffer, waypoint* waypt)
+decode_sbn_datetime(const unsigned char* buffer, Waypoint* waypt)
{
struct tm tm;
int ms = be_readu16(buffer + 6);
}
static void
-decode_sbn_position(const unsigned char* buffer, waypoint* waypt)
+decode_sbn_position(const unsigned char* buffer, Waypoint* waypt)
{
waypt->latitude = be_read32(buffer + 0) * 0.0000001;
waypt->longitude = be_read32(buffer + 4) * 0.0000001;
waypt->altitude = be_read32(buffer + 12) * 0.01;
}
-static waypoint*
+static Waypoint*
decode_sbn_record(unsigned char* buffer)
{
- waypoint* waypt = NULL;
- waypt = new waypoint;
+ Waypoint* waypt = NULL;
+ waypt = new Waypoint;
if (is_sbn_valid(buffer)) {
waypt->fix = decode_sbn_mode(buffer + 3);
}
}
-static waypoint*
+static Waypoint*
read_logpoint(void)
{
unsigned char buffer[SBP_RECORD_LEN];
sbp_read(void)
{
if (global_opts.masked_objective & TRKDATAMASK) {
- waypoint* logpoint;
+ Waypoint* logpoint;
route_head* track;
track = route_head_alloc();
while (npts) {
SHPObject* shp;
- waypoint* wpt;
+ Waypoint* wpt;
const char* name = "";
const char* url;
char* tmpName = NULL;
routehead->rte_name = name;
route_add_head(routehead);
for (j = 0; j < shp->nVertices; j++) {
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = shp->padfY[j];
wpt->longitude = shp->padfX[j];
wpt->altitude = shp->padfZ[j];
break;
case SHPT_POINT:
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = shp->dfYMin;
wpt->longitude = shp->dfXMin;
wpt->shortname = name;
}
void
-my_write_wpt(const waypoint* wpt)
+my_write_wpt(const Waypoint* wpt)
{
SHPObject* shpobject;
void
-poly_point(const waypoint* wpt)
+poly_point(const Waypoint* wpt)
{
polybufx[poly_count] = wpt->longitude;
polybufy[poly_count] = wpt->latitude;
static gbfile* fin, *fout;
static int rte_num, wpt_num;
static short_handle short_h;
-static const waypoint* prev_wpt;
+static const Waypoint* prev_wpt;
-static waypoint*
+static Waypoint*
skyforce_parse_coords(const char* str)
{
- waypoint* wpt;
+ Waypoint* wpt;
if (strlen(str) < 38) {
fatal(MYNAME ": Incomplete line!\n");
}
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = atof(str + 21);
if (str[20] == 'S') {
}
-static waypoint*
+static Waypoint*
skyforce_parse_wpt(const char* str, int* rte_num)
{
- waypoint* wpt;
+ Waypoint* wpt;
wpt = skyforce_parse_coords(str);
if (wpt == NULL) {
}
-static waypoint*
+static Waypoint*
skyforce_parse_trk(const char* str)
{
char buf[15];
int len;
- waypoint* wpt;
+ Waypoint* wpt;
wpt = skyforce_parse_coords(str);
if (wpt == NULL) {
static void
-skyforce_waypt_disp_cb(const waypoint* wpt)
+skyforce_waypt_disp_cb(const Waypoint* wpt)
{
char buf[75]; /* long enough for all data types */
double lat, lon;
while ((str = gbfgetstr(fin))) {
- waypoint* wpt;
+ Waypoint* wpt;
int i;
str = lrtrim(str);
pst->z = 0;
}
-static waypoint*
+static Waypoint*
make_trackpoint(struct read_state* st, double lat, double lon, double alt)
{
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
xasprintf(&wpt->shortname, "TP%04d", ++st->tpn);
full_item f;
compact_item c;
multi_hz_item m;
- waypoint* tpt = NULL;
+ Waypoint* tpt = NULL;
switch (ITEM_TYPE(pitem)) {
WAYPT_SET(tpt, speed, KPH_TO_MPS(ITEM_SPEED(pitem))); /* convert speed to m/s */
if (poi) {
- waypt_add(new waypoint(*tpt));
+ waypt_add(new Waypoint(*tpt));
}
if (0 == pst->route_head_) {
unsigned int poi;
double lat, lng, alt;
double ecef_x, ecef_y, ecef_z;
- waypoint* wpt;
+ Waypoint* wpt;
for (poi=0; poi<NUMPOI; poi++) {
MSG_GET_POI[1]=(poi>>8)&0xff;
} else {
ECEF_to_LLA(ecef_x, ecef_y, ecef_z, &lat, &lng, &alt);
- wpt = new waypoint;
+ wpt = new Waypoint;
xasprintf(&wpt->shortname, "POI_%s", poinames[poi]);
xasprintf(&wpt->description, "miniHomer points to this coordinates if the %s symbol is on", poinames[poi]);
wpt->latitude = lat;
static char* xteopt;
static char* lenopt;
static char* relopt;
-void (*waypt_del_fnp)(route_head* rte, waypoint* wpt);
+void (*waypt_del_fnp)(route_head* rte, Waypoint* wpt);
static
arglist_t routesimple_args[] = {
struct xte* xte_rec;
struct xte_intermed* next;
struct xte_intermed* prev;
- const waypoint* wpt;
+ const Waypoint* wpt;
};
void
static struct xte* xte_recs = NULL;
void
-routesimple_waypt_pr(const waypoint* wpt)
+routesimple_waypt_pr(const Waypoint* wpt)
{
if (!cur_rte) {
return;
void
compute_xte(struct xte* xte_rec)
{
- const waypoint* wpt3 = xte_rec->intermed->wpt;
- const waypoint* wpt1 = NULL;
- const waypoint* wpt2 = NULL;
+ const Waypoint* wpt3 = xte_rec->intermed->wpt;
+ const Waypoint* wpt1 = NULL;
+ const Waypoint* wpt2 = NULL;
double frac, reslat, reslon;
/* if no previous, this is an endpoint and must be preserved. */
if (!xte_rec->intermed->prev) {
}
}
(*waypt_del_fnp)((route_head*)(void*)rte,
- (waypoint*)(void*)(xte_recs[i].intermed->wpt));
- delete (waypoint*)(void*)(xte_recs[i].intermed->wpt);
+ (Waypoint*)(void*)(xte_recs[i].intermed->wpt));
+ delete (Waypoint*)(void*)(xte_recs[i].intermed->wpt);
if (xte_recs[i].intermed->prev) {
xte_recs[i].intermed->prev->next = xte_recs[i].intermed->next;
static int
sort_comp(const queue* a, const queue* b)
{
- const waypoint* x1 = (waypoint*)a;
- const waypoint* x2 = (waypoint*)b;
+ const Waypoint* x1 = (Waypoint*)a;
+ const Waypoint* x2 = (Waypoint*)b;
switch (sort_mode) {
case sm_gcid:
stack = tmp_elt;
if (opt_copy) {
QUEUE_FOR_EACH(&(stack->waypts), elem, tmp) {
- waypt_add(new waypoint(*(waypoint*)elem));
+ waypt_add(new Waypoint(*(Waypoint*)elem));
}
}
}
if (opt_append) {
QUEUE_FOR_EACH(&(stack->waypts), elem, tmp) {
- waypt_add((waypoint*)elem);
+ waypt_add((Waypoint*)elem);
}
route_append(&(stack->routes));
route_flush(&(stack->routes));
static QString rte_name;
static QString rte_desc;
-static waypoint* trkpt_out;
+static Waypoint* trkpt_out;
static route_head* trk_out;
static double trkpt_dist;
static int
track_qsort_cb(const void* a, const void* b)
{
- const waypoint* wa = *(waypoint**)a;
- const waypoint* wb = *(waypoint**)b;
+ const Waypoint* wa = *(Waypoint**)a;
+ const Waypoint* wb = *(Waypoint**)b;
return wa->GetCreationTime().toTime_t() - wb->GetCreationTime().toTime_t();
}
static void
finalize_tracks(void)
{
- waypoint** list;
+ Waypoint** list;
int count = 0;
queue* elem, *tmp;
int index;
return;
}
- list = (waypoint**)xmalloc(count * sizeof(*list));
+ list = (Waypoint**)xmalloc(count * sizeof(*list));
index = 0;
QUEUE_FOR_EACH(&trackpts, elem, tmp) {
- list[index] = (waypoint*)elem;
+ list[index] = (Waypoint*)elem;
dequeue(elem);
index++;
}
qsort(list, count, sizeof(*list), track_qsort_cb);
for (index = 0; index < count; index++) {
- waypoint* wpt = list[index];
+ Waypoint* wpt = list[index];
if (wpt->wpt_flags.fmt_use == 2) { /* log continued */
track = NULL;
}
char* str;
int column = -1;
int what = -1; /* -1 = unknown, 0 = tp, 1 = mp, 2 = wp, 3 = ap */
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
char* cx;
int hour, min, sec, day, month, year;
warning(MYNAME ": Unknown point type %s at line %d!\n", str, lineno);
return;
}
- wpt = new waypoint;
+ wpt = new Waypoint;
break;
case 1:
static void
-calculate(const waypoint* wpt, double* dist, double* speed, double* course,
+calculate(const Waypoint* wpt, double* dist, double* speed, double* course,
double* asc, double* desc)
{
if (trkpt_out != NULL) {
}
static void
-any_waypt_calc_cb(const waypoint* wpt)
+any_waypt_calc_cb(const Waypoint* wpt)
{
double speed, course, dist;
this_time += (wpt->GetCreationTime().toTime_t() - trkpt_out->GetCreationTime().toTime_t());
}
- trkpt_out = (waypoint*)wpt;
+ trkpt_out = (Waypoint*)wpt;
}
static void
static void
-track_disp_wpt_cb(const waypoint* wpt)
+track_disp_wpt_cb(const Waypoint* wpt)
{
struct tm tm;
char tbuf[32];
gbfprintf(fout, ",0\n");
}
- trkpt_out = (waypoint*)wpt;
+ trkpt_out = (Waypoint*)wpt;
}
static void
}
static void
-route_disp_wpt_cb(const waypoint* wpt)
+route_disp_wpt_cb(const Waypoint* wpt)
{
if (this_route_valid) {
QString sn;
}
static void
-track_disp_custom_cb(const waypoint* wpt)
+track_disp_custom_cb(const Waypoint* wpt)
{
if (wpt->GetCreationTime().isValid() && (wpt->altitude != unknown_alt)) {
gbfprintf(fout, "%d,%.f\n", (int)(wpt->GetCreationTime().toTime_t() - start_time), wpt->altitude);
static gbfile* fin, *fout;
static route_head* track, *route;
-static waypoint* wpt;
+static Waypoint* wpt;
static short_handle short_h;
#define MYNAME "STMwpp"
}
what = new_what;
- wpt = new waypoint;
+ wpt = new Waypoint;
break;
case 1:
route = route_head_alloc();
route_add_head(route);
}
- route_add_wpt(route, new waypoint(*wpt));
+ route_add_wpt(route, new Waypoint(*wpt));
}
break;
}
static void
-stmwpp_waypt_cb(const waypoint* wpt)
+stmwpp_waypt_cb(const Waypoint* wpt)
{
char cdate[16], ctime[16];
struct tm tm;
static time_t time_offset;
static int stnum;
static gbfile* fout;
-static const waypoint* prevwpp;
+static const Waypoint* prevwpp;
/* internal helper functions */
}
static void
-subrip_prevwp_pr(const waypoint* waypointp)
+subrip_prevwp_pr(const Waypoint* waypointp)
{
/* Now that we have the next waypoint, we can write out the subtitle for
* the previous one.
/* callback functions */
static void
-subrip_trkpt_pr(const waypoint* waypointp)
+subrip_trkpt_pr(const Waypoint* waypointp)
{
/*
* To determine the duration of the subtitle, we need the timestamp of the
};
static void
-swapdata_cb(const waypoint* ref)
+swapdata_cb(const Waypoint* ref)
{
- waypoint* wpt = (waypoint*)ref;
+ Waypoint* wpt = (Waypoint*)ref;
double x;
x = wpt->latitude;
#include "defs.h"
#include "xmlgeneric.h"
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static int item_count;
static int waypoints;
static double version;
if (route != NULL) {
if ((via != 0) || (routevia == NULL)) {
- waypoint* wpt = new waypoint(*wpt_tmp);
+ Waypoint* wpt = new Waypoint(*wpt_tmp);
route_add_wpt(route, wpt);
}
}
{
waypoints++;
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
if ((waypoints == 1) || (waypoints == item_count)) {
wpt_tmp->wpt_flags.fmt_use ++;
}
{
uint32_t i;
for (i = 0; i < tty_wpt_count; i++) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
wpt->shortname = (gbfgetcstr(fin));
wpt->description = (gbfgetcstr(fin));
}
static void
-text_disp(const waypoint* wpt)
+text_disp(const Waypoint* wpt)
{
int32_t utmz;
double utme, utmn;
char desc[100];
char icon[100];
char* ibuf;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int line = 0;
while ((ibuf = gbfgetstr(file_in))) {
}
if (sscanf(ibuf, "%lf,%lf:%100[^:]:%100[^\n]",
&lon, &lat, icon, desc)) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->longitude = lon;
wpt_tmp->latitude = lat;
}
static void
-tiger_disp(const waypoint* wpt)
+tiger_disp(const Waypoint* wpt)
{
QString pin;
double lat = wpt->latitude;
#if CLICKMAP
static void
-map_plot(const waypoint* wpt)
+map_plot(const Waypoint* wpt)
{
static int x,y;
{
char* buff;
char* s;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
int i;
int linecount = 0;
/* skip the line if it contains "sHyperLink" as it is a header (I hope :) */
if ((strlen(buff)) && (strstr(buff, "sHyperLink") == NULL)) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
/* data delimited by tabs, not enclosed in quotes. */
s = buff;
}
static void
-tmpro_waypt_pr(const waypoint* wpt)
+tmpro_waypt_pr(const Waypoint* wpt)
{
int icon = 1; /* default to "flag" */
int colour = 255; /*default to red */
long x;
long y;
char* desc;
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
while (!gbfeof(file_in)) {
rectype = read_char(file_in);
if (rectype == EOF) {
desc = (char*)xmalloc(recsize - 13);
gbfread(desc, recsize-13, 1, file_in);
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->longitude = x/100000.0;
wpt_tmp->latitude = y/100000.0;
#if 0 // Fallthrough for now to silently ignore these until this is done.
recsize = read_char(file_in) ;
check_recsize(recsize);
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
decode_latlon(&wpt_tmp->latitude, &wpt_tmp->longitude);
gbfread(tbuf, 3, 1, file_in);
gbfread(tbuf, 3, 1, file_in);
struct hdr {
- waypoint* wpt;
+ Waypoint* wpt;
};
static int compare_lon(const void* a, const void* b);
newblock->size = 4 * 5 + 1; /* hdr is 5 longs, 1 char */
if (count < 20) {
int i;
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
for (i = 0; i < count; i++) {
newblock->size += 4 * 3 + 1;
struct hdr* htable, *bh;
queue* elem, *tmp;
extern queue waypt_head;
- waypoint* waypointp;
+ Waypoint* waypointp;
double minlon = 200;
double maxlon = -200;
double minlat = 200;
bh = htable;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
bh->wpt = waypointp;
if (waypointp->longitude > maxlon) {
maxlon = waypointp->longitude;
tpg_read(void)
{
char buff[MAXTPGSTRINGSIZE + 1];
- waypoint* wpt_tmp;
+ Waypoint* wpt_tmp;
double lat, lon, elev;
double amt;
short int pointcount;
while (pointcount--) {
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
/* pascal-like shortname */
wpt_tmp->shortname = gbfgetpstr(tpg_file_in);
}
static void
-tpg_waypt_pr(const waypoint* wpt)
+tpg_waypt_pr(const Waypoint* wpt)
{
double lon, lat;
double amt;
short* lon_delta, *lat_delta;
int i, j;
route_head* track_temp;
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
/* track count */
track_count = gbfgetint16(tpo_file_in);
/* multiply all the deltas by the scaling factors to determine the waypoint positions */
for (j=0; j<waypoint_count; j++) {
- waypoint_temp = new waypoint;
+ waypoint_temp = new Waypoint;
/* convert incoming NAD27/CONUS coordinates to WGS84 */
GPS_Math_Known_Datum_To_WGS84_M(
//
// For version 3.x files.
//
-waypoint* tpo_convert_ll(int lat, int lon)
+Waypoint* tpo_convert_ll(int lat, int lon)
{
double latitude;
double longitude;
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
- waypoint_temp = new waypoint;
+ waypoint_temp = new Waypoint;
latitude = (double)lat / 0x800000;
longitude = (double)lon / 0x800000;
// Process the track bytes
llvalid = 0;
for (jj = 0; jj < track_byte_count;) {
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
// Time to read a new latlong?
if (!llvalid) {
//
// For version 3.x files.
//
-waypoint** tpo_wp_index;
+Waypoint** tpo_wp_index;
unsigned int tpo_index_ptr;
// Fetch storage for the waypoint index (needed later for
// routes)
- tpo_wp_index = (waypoint**) xmalloc(sizeof(waypoint*) * waypoint_count);
+ tpo_wp_index = (Waypoint**) xmalloc(sizeof(Waypoint*) * waypoint_count);
tpo_index_ptr = 0;
if (waypoint_count == 0) {
// Read/process each waypoint in the file
for (ii = 0; ii < waypoint_count; ii++) {
- waypoint* waypoint_temp;
- waypoint* waypoint_temp2;
+ Waypoint* waypoint_temp;
+ Waypoint* waypoint_temp2;
unsigned int name_length;
char* waypoint_name;
int lat;
// For routes (later), we need a duplicate of each waypoint
// indexed by the order we read them in.
- waypoint_temp2 = new waypoint(*waypoint_temp);
+ waypoint_temp2 = new Waypoint(*waypoint_temp);
// Attach the copy to our index
tpo_wp_index[tpo_index_ptr++] = waypoint_temp2;
int lat;
int lon;
unsigned int name_length;
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
unsigned int num_bytes;
unsigned int jj;
for (ii = 0; ii < waypoint_count; ii++) {
int lat;
int lon;
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
//UNKNOWN DATA LENGTH
int lat;
int lon;
unsigned int name_length;
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
//UNKNOWN DATA LENGTH
// index, then add the waypoint to this route.
//
for (jj = 0; jj < waypoint_cnt; jj++) {
- waypoint* waypoint_temp;
+ Waypoint* waypoint_temp;
unsigned char val;
//printf("val: %x\t\t", val);
// Duplicate a waypoint from our index of waypoints.
- waypoint_temp = new waypoint(*tpo_wp_index[val-1]);
+ waypoint_temp = new Waypoint(*tpo_wp_index[val-1]);
// Add the waypoint to the route
route_add_wpt(route_temp, waypoint_temp);
unsigned char unknown1[] = { 0xFF, 0x00, 0x00, 0x00 };
unsigned char bounding_box[8] = { 0x00, 0x80, 0x00, 0x80, 0xFF, 0x7F, 0xFF, 0x7F };
- waypoint* first_track_waypoint = (waypoint*) QUEUE_FIRST(&rte->waypoint_list);
+ Waypoint* first_track_waypoint = (Waypoint*) QUEUE_FIRST(&rte->waypoint_list);
/* zoom level 1-5 visibility flags */
gbfwrite(visibility_flags, 1, sizeof(visibility_flags), tpo_file_out);
}
static void
-tpo_track_disp(const waypoint* waypointp)
+tpo_track_disp(const Waypoint* waypointp)
{
double lat, lon, amt, x, y, z;
short lat_delta, lon_delta;
static int
trackfilter_merge_qsort_cb(const void* a, const void* b)
{
- const waypoint* wa = *(waypoint**)a;
- const waypoint* wb = *(waypoint**)b;
+ const Waypoint* wa = *(Waypoint**)a;
+ const Waypoint* wb = *(Waypoint**)b;
const QDateTime dta = wa->GetCreationTime();
const QDateTime dtb = wb->GetCreationTime();
trackfilter_fill_track_list_cb(const route_head* track) /* callback for track_disp_all */
{
int i;
- waypoint* wpt, *prev;
+ Waypoint* wpt, *prev;
queue* elem, *tmp;
if (track->rte_waypt_ct == 0) {
if ((track->rte_name == NULL) ||
(case_ignore_str_match(CSTRc(track->rte_name), opt_name) == 0)) {
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
track_del_wpt((route_head*)track, wpt);
delete wpt;
}
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
track_pts++;
- wpt = (waypoint*)elem;
+ wpt = (Waypoint*)elem;
if (!wpt->creation_time.isValid()) {
timeless_pts++;
}
if (strchr(opt_title, '%') != NULL) {
struct tm tm;
- waypoint* wpt;
+ Waypoint* wpt;
if (track->rte_waypt_ct == 0) {
tm = *localtime(&default_time);
} else {
- wpt = (waypoint*) QUEUE_FIRST((queue*)&track->waypoint_list);
+ wpt = (Waypoint*) QUEUE_FIRST((queue*)&track->waypoint_list);
time_t t = wpt->GetCreationTime().toTime_t();
tm = *localtime(&t);
}
route_head* curr = track_list[i].track;
QUEUE_FOR_EACH((queue*)&curr->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
track_del_wpt(curr, wpt);
track_add_wpt(master, wpt);
}
int i, j, dropped;
queue* elem, *tmp;
- waypoint** buff;
- waypoint* prev, *wpt;
+ Waypoint** buff;
+ Waypoint* prev, *wpt;
route_head* master = track_list[0].track;
if (track_pts-timeless_pts < 1) {
return;
}
- buff = (waypoint**)xcalloc(track_pts-timeless_pts, sizeof(*buff));
+ buff = (Waypoint**)xcalloc(track_pts-timeless_pts, sizeof(*buff));
j = 0;
for (i = 0; i < track_ct; i++) { /* put all points into temp buffer */
route_head* track = track_list[i].track;
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
- wpt = (waypoint*)elem;
+ wpt = (Waypoint*)elem;
if (wpt->creation_time.isValid()) {
- buff[j++] = new waypoint(*wpt);
+ buff[j++] = new Waypoint(*wpt);
}
track_del_wpt(track, wpt);
delete wpt;
route_head* master = track_list[0].track;
int count = master->rte_waypt_ct;
- waypoint** buff;
- waypoint* wpt;
+ Waypoint** buff;
+ Waypoint* wpt;
queue* elem, *tmp;
int i, j;
double interval = -1;
trackfilter_split_init_rte_name(master, track_list[0].first_time);
- buff = (waypoint**) xcalloc(count, sizeof(*buff));
+ buff = (Waypoint**) xcalloc(count, sizeof(*buff));
i = 0;
QUEUE_FOR_EACH((queue*)&master->waypoint_list, elem, tmp) {
- wpt = (waypoint*)elem;
+ wpt = (Waypoint*)elem;
buff[i++] = wpt;
}
{
int i;
queue* elem, *tmp;
- waypoint* wpt;
+ Waypoint* wpt;
time_t delta;
delta = trackfilter_parse_time_opt(opt_move);
for (i = 0; i < track_ct; i++) {
route_head* track = track_list[i].track;
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
- wpt = (waypoint*)elem;
+ wpt = (Waypoint*)elem;
wpt->creation_time += delta;
}
{
int i;
queue* elem, *tmp;
- waypoint* wpt;
+ Waypoint* wpt;
double oldlat = -999;
double oldlon = -999;
route_head* track = track_list[i].track;
first = 1;
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
- wpt = (waypoint*)elem;
+ wpt = (Waypoint*)elem;
if (opt_fix) {
wpt->fix = fix;
if (wpt->sat == 0) {
route_head* track = track_list[i].track;
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (wpt->creation_time.isValid()) {
inside = ((wpt->GetCreationTime().toTime_t() >= start) && (wpt->GetCreationTime().toTime_t() <= stop));
}
int trk_seg_num = 1, first = 1;
QUEUE_FOR_EACH((queue*)&src->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (wpt->wpt_flags.new_trkseg && !first) {
dest = route_head_alloc();
first = 1;
QUEUE_FOR_EACH((queue*)&curr->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
int orig_new_trkseg = wpt->wpt_flags.new_trkseg;
route_head* track = track_list[i].track;
QUEUE_FOR_EACH((queue*)&track->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (opt_faketime != 0 && (!wpt->creation_time.isValid() || faketime.force)) {
wpt->creation_time = QDateTime::fromTime_t(faketime.start);
}
static int
-trackfilter_points_are_same(const waypoint* wpta, const waypoint* wptb)
+trackfilter_points_are_same(const Waypoint* wpta, const Waypoint* wptb)
{
// We use a simpler (non great circle) test for lat/lon here as this
// is used for keeping the 'bookends' of non-moving points.
queue* elem, *tmp;
double avg_dist = 0;
int index = 0;
- waypoint* prev_wpt = NULL;
+ Waypoint* prev_wpt = NULL;
// Consider tossing trackpoints closer than this in radians.
// (Empirically determined; It's a few dozen feet.)
const double ktoo_close = 0.000005;
QUEUE_FOR_EACH(&rte->waypoint_list, elem, tmp) {
- waypoint* wpt = (waypoint*)elem;
+ Waypoint* wpt = (Waypoint*)elem;
if (index > 0) {
double cur_dist = gcdist(RAD(prev_wpt->latitude),
RAD(prev_wpt->longitude),
}
if (cur_dist < ktoo_close) {
- if (wpt != (waypoint*) QUEUE_LAST(&rte->waypoint_list)) {
- waypoint* next_wpt = (waypoint*) QUEUE_NEXT(&wpt->Q);
+ if (wpt != (Waypoint*) QUEUE_LAST(&rte->waypoint_list)) {
+ Waypoint* next_wpt = (Waypoint*) QUEUE_NEXT(&wpt->Q);
if (trackfilter_points_are_same(prev_wpt, wpt) &&
trackfilter_points_are_same(wpt, next_wpt)) {
track_del_wpt((route_head*)rte, wpt);
break;
}
#if NEWQ
- foreach(waypoint* wpt, waypt_list) {
+ foreach(Waypoint* wpt, waypt_list) {
#else
queue* elem, *tmp;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypoint* wpt = (waypoint*) elem;
+ Waypoint* wpt = (Waypoint*) elem;
#endif
- wpt = new waypoint(*wpt);
+ wpt = new Waypoint(*wpt);
switch (current_target) {
case 'R':
route_add_wpt_named(rte, wpt, RPT, name_digits);
}
static void
-transform_any_disp_wpt_cb(const waypoint* wpt)
+transform_any_disp_wpt_cb(const Waypoint* wpt)
{
- waypoint* temp = new waypoint(*wpt);
+ Waypoint* temp = new Waypoint(*wpt);
if (current_target == 'R') {
route_add_wpt_named(current_rte, temp, current_namepart, name_digits);
} else if (current_target == 'T') {
unicsv_parse_one_line(char* ibuf)
{
char* s;
- waypoint* wpt = NULL;
+ Waypoint* wpt = NULL;
int column;
int utm_zone = -9999;
double utm_easting = 0;
int ns = 1;
int ew = 1;
geocache_data* gc_data = NULL;
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = unicsv_unknown;
wpt->longitude = unicsv_unknown;
memset(&ymd, 0, sizeof(ymd));
/* =========================================================================== */
static void
-unicsv_fatal_outside(const waypoint* wpt)
+unicsv_fatal_outside(const Waypoint* wpt)
{
gbfprintf(fout, "#####\n");
fatal(MYNAME ": %s (%s) is outside of convertable area of grid \"%s\"!\n",
#define FIELD_USED(a) (gb_getbit(&unicsv_outp_flags, a))
static void
-unicsv_waypt_enum_cb(const waypoint* wpt)
+unicsv_waypt_enum_cb(const Waypoint* wpt)
{
garmin_fs_t* gmsd;
}
static void
-unicsv_waypt_disp_cb(const waypoint* wpt)
+unicsv_waypt_disp_cb(const Waypoint* wpt)
{
double lat, lon, alt;
char* cout = NULL;
* formats do lookups based on these strings.
*/
const char*
-get_cache_icon(const waypoint* waypointp)
+get_cache_icon(const Waypoint* waypointp)
{
if (!global_opts.smart_icons) {
return NULL;
track_add_head(track);
while (1) {
- waypoint* wpt;
+ Waypoint* wpt;
char c;
int bad = 0;
int record_len = is_advanced_mode ? sizeof(line.adv) : sizeof(line.bas);
line.bas.cr = 0; /* null terminate vox field */
}
- wpt = new waypoint;
+ wpt = new Waypoint;
/* lat is a string in the form: 31.768380N */
c = line.bas.common.latitude_NS; /* N/S */
track_add_wpt(track, wpt);
if (line.bas.common.tag != 'T') {
- waypoint* wpt2;
+ Waypoint* wpt2;
// A 'G' tag appears to be a 'T' tag, but generated on the trailing
// edge of a DGPS fix as it decays to an SPS fix. See 1/13/13 email
// thread on gpsbabel-misc with Jamie Robertson.
assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'G' ||
line.bas.common.tag == 'V');
- wpt2 = new waypoint(*wpt);
+ wpt2 = new Waypoint(*wpt);
if (line.bas.common.tag == 'V') { // waypoint with voice recording?
char vox_file_name[sizeof(line.adv.vox)+5];
const char* vox = is_advanced_mode ? line.adv.vox : line.bas.vox;
}
}
-static void validate_point(const waypoint* waypointp)
+static void validate_point(const Waypoint* waypointp)
{
point_ct += 1;
}
}
static void
-vcf_disp(const waypoint* wpt)
+vcf_disp(const Waypoint* wpt)
{
int latint, lonint;
route_head* trk = NULL;
while (! gbfeof(fin)) {
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
wpt->latitude = gbfgetdbl(fin);
wpt->longitude = gbfgetdbl(fin);
}
static void
-vidaone_trkpt(const waypoint* wpt)
+vidaone_trkpt(const Waypoint* wpt)
{
gbfputdbl(wpt->latitude, fout);
gbfputdbl(wpt->longitude, fout);
long check2 =-2;
long check3 =-3;
route_head* route_head =0;
- waypoint* wpt_tmp =0;
+ Waypoint* wpt_tmp =0;
double latrad =0;
double lonrad =0;
double elev =0;
gpsvalid =gbfgetc(infile); /* fix is valid */
gpssats =gbfgetc(infile); /* number of sats */
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude =DEG(latrad);
wpt_tmp->longitude =DEG(lonrad);
}
static void
-vitosmt_waypt_pr(const waypoint* waypointp)
+vitosmt_waypt_pr(const Waypoint* waypointp)
{
unsigned char* workbuffer =0;
size_t position =0;
{
int version = 0;
route_head* route_head = 0;
- waypoint* wpt_tmp = 0;
+ Waypoint* wpt_tmp = 0;
int scaled_lat = 0;
int scaled_lon = 0;
double altitude = 0;
course = gbfgetint16(infile);
status = gbfgetint32(infile);
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
wpt_tmp->latitude = scaled_lat / vitovtt_latitudescale;
wpt_tmp->longitude = scaled_lon / vitovtt_longitudescale;
int16_t alt, speed_raw;
uint16_t hdg_raw;
uint8_t sats, hdop_raw, vdop_raw;
- waypoint* waypt;
+ Waypoint* waypt;
struct tm tm;
// The files have DOS line endings (CR/LF) but we don't care, because we
ymd /= 100;
tm.tm_year = ymd % 100 + 100;
- waypt = new waypoint;
+ waypt = new Waypoint;
// Lat/Lon are both stored *0xE1000 which we have to divide out
// for decimal degrees
#include "session.h"
#if NEWQ
-QList<waypoint*> waypt_list;
+QList<Waypoint*> waypt_list;
queue waypt_head; // This is here solely to freak out the formats that are
// looking into what should be a private members.
#else
static unsigned int waypt_ct;
static short_handle mkshort_handle;
-geocache_data waypoint::empty_gc_data;
+geocache_data Waypoint::empty_gc_data;
static global_trait traits;
const global_trait* get_traits(void)
#endif
}
-void update_common_traits(const waypoint* wpt)
+void update_common_traits(const Waypoint* wpt)
{
/* This is a bit tacky, but it allows a hint whether we've seen
* this data or not in the life cycle of this run. Of course,
}
void
-waypt_add(waypoint* wpt)
+waypt_add(Waypoint* wpt)
{
double lat_orig = wpt->latitude;
double lon_orig = wpt->longitude;
}
void
-waypt_del(waypoint* wpt)
+waypt_del(Waypoint* wpt)
{
#if NEWQ
#else
}
void
-waypt_disp(const waypoint* wpt)
+waypt_disp(const Waypoint* wpt)
{
if (wpt->GetCreationTime().isValid()) {
printf("%s ", qPrintable(wpt->creation_time.toString()));
{
int i = 0;
#if NEWQ
- foreach(waypoint* waypointp, waypt_list) {
+ foreach(Waypoint* waypointp, waypt_list) {
#else
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
#endif
if ((se == NULL) || (waypointp->session == se)) {
if (global_opts.verbose_status) {
* Recompund bounding box based on new position point.
*/
void
-waypt_add_to_bounds(bounds* bounds, const waypoint* waypointp)
+waypt_add_to_bounds(bounds* bounds, const Waypoint* waypointp)
{
if (waypointp->latitude > bounds->max_lat) {
bounds->max_lat = waypointp->latitude;
{
waypt_init_bounds(bounds);
#if NEWQ
- foreach(waypoint* waypointp, waypt_list) {
+ foreach(Waypoint* waypointp, waypt_list) {
#else
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
#endif
waypt_add_to_bounds(bounds, waypointp);
}
}
-waypoint*
+Waypoint*
find_waypt_by_name(const QString& name)
{
#if NEWQ
- foreach(waypoint* waypointp, waypt_list) {
+ foreach(Waypoint* waypointp, waypt_list) {
#else
queue* elem, *tmp;
- waypoint* waypointp;
+ Waypoint* waypointp;
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
- waypointp = (waypoint*) elem;
+ waypointp = (Waypoint*) elem;
#endif
if (waypointp->shortname == name) {
return waypointp;
queue* elem, *tmp;
QUEUE_FOR_EACH(head, elem, tmp) {
- waypoint* q = (waypoint*) dequeue(elem);
+ Waypoint* q = (Waypoint*) dequeue(elem);
delete q;
if (head == &waypt_head) {
waypt_ct--;
waypt_backup(signed int* count, queue** head_bak)
{
queue* elem, *tmp, *qbackup;
- waypoint* wpt;
+ Waypoint* wpt;
int no = 0;
qbackup = (queue*) xcalloc(1, sizeof(*qbackup));
waypt_ct = 0;
QUEUE_FOR_EACH(qbackup, elem, tmp) {
- wpt = (waypoint*)elem;
- waypt_add(new waypoint(*wpt));
+ wpt = (Waypoint*)elem;
+ waypt_add(new Waypoint(*wpt));
no++;
}
}
void
-waypt_add_url(waypoint* wpt, const QString& link, const QString& url_link_text)
+waypt_add_url(Waypoint* wpt, const QString& link, const QString& url_link_text)
{
wpt->url_link_list_.push_back(UrlLink(link, url_link_text));
}
*/
double
-waypt_time(const waypoint* wpt)
+waypt_time(const Waypoint* wpt)
{
if (!wpt->creation_time.isValid()) {
return (double) 0;
*/
double
-waypt_distance_ex(const waypoint* A, const waypoint* B)
+waypt_distance_ex(const Waypoint* A, const Waypoint* B)
{
double res = 0;
garmin_fs_p gmsd;
}
double
-waypt_distance(const waypoint* A, const waypoint* B)
+waypt_distance(const Waypoint* A, const Waypoint* B)
{
if ((A == NULL) || (B == NULL)) {
return 0;
*/
double
-waypt_speed_ex(const waypoint* A, const waypoint* B)
+waypt_speed_ex(const Waypoint* A, const Waypoint* B)
{
double dist, time;
*/
double
-waypt_speed(const waypoint* A, const waypoint* B)
+waypt_speed(const Waypoint* A, const Waypoint* B)
{
double dist, time;
* Calculates "Course True" from A to B
*/
double
-waypt_course(const waypoint* A, const waypoint* B)
+waypt_course(const Waypoint* A, const Waypoint* B)
{
if (A && B) {
return heading_true_degrees(RAD(A->latitude), RAD(A->longitude), RAD(B->latitude), RAD(B->longitude));
}
}
-waypoint::waypoint() :
+Waypoint::Waypoint() :
// Q(),
latitude(0), // These should probably use some invalid data, but
longitude(0), // it looks like we have code that relies on them being zero.
power(0),
temperature(0),
odometer_distance(0),
- gc_data(&waypoint::empty_gc_data),
+ gc_data(&Waypoint::empty_gc_data),
fs(NULL),
session(curr_session()),
extra_data(NULL)
QUEUE_INIT(&Q);
}
-waypoint::~waypoint()
+Waypoint::~Waypoint()
{
- if (gc_data != &waypoint::empty_gc_data) {
+ if (gc_data != &Waypoint::empty_gc_data) {
delete gc_data;
}
fs_chain_destroy(fs);
}
-waypoint::waypoint(const waypoint& other) :
+Waypoint::Waypoint(const Waypoint& other) :
// Q(other.Q),
latitude(other.latitude),
longitude(other.longitude),
extra_data(other.extra_data)
{
// deep copy geocache data unless it is the specail static empty_gc_data.
- if (other.gc_data != &waypoint::empty_gc_data) {
+ if (other.gc_data != &Waypoint::empty_gc_data) {
gc_data = new geocache_data(*other.gc_data);
}
// note: extra_data is not deep copied.
}
-waypoint& waypoint::operator=(const waypoint& other)
+Waypoint& Waypoint::operator=(const Waypoint& other)
{
// the default assignment operator is not appropriate as we do deep copy of some members,
// and we haven't bothered to write an appropriate one.
}
bool
-waypoint::HasUrlLink() const
+Waypoint::HasUrlLink() const
{
return !url_link_list_.isEmpty();
}
const UrlLink&
-waypoint::GetUrlLink() const
+Waypoint::GetUrlLink() const
{
return url_link_list_[0];
}
const QList<UrlLink>
-waypoint::GetUrlLinks() const
+Waypoint::GetUrlLinks() const
{
return url_link_list_;
}
void
-waypoint::AddUrlLink(const UrlLink l)
+Waypoint::AddUrlLink(const UrlLink l)
{
url_link_list_.push_back(l);
}
QString
-waypoint::CreationTimeXML() const
+Waypoint::CreationTimeXML() const
{
if (!creation_time.isValid()) {
return NULL;
}
gpsbabel::DateTime
-waypoint::GetCreationTime() const
+Waypoint::GetCreationTime() const
{
return creation_time;
}
void
-waypoint::SetCreationTime(gpsbabel::DateTime t)
+Waypoint::SetCreationTime(gpsbabel::DateTime t)
{
creation_time = t;
}
void
-waypoint::SetCreationTime(time_t t)
+Waypoint::SetCreationTime(time_t t)
{
creation_time = QDateTime::fromTime_t(t);
}
void
-waypoint::SetCreationTime(time_t t, int ms)
+Waypoint::SetCreationTime(time_t t, int ms)
{
creation_time.setTime_t(t);
creation_time = creation_time.addMSecs(ms);
}
geocache_data*
-waypoint::AllocGCData()
+Waypoint::AllocGCData()
{
- if (gc_data == &waypoint::empty_gc_data) {
+ if (gc_data == &Waypoint::empty_gc_data) {
gc_data = new geocache_data;
}
return gc_data;
}
int
-waypoint::EmptyGCData() const
+Waypoint::EmptyGCData() const
{
- return (gc_data == &waypoint::empty_gc_data);
+ return (gc_data == &Waypoint::empty_gc_data);
}
mday > 0 && mday <= 31 && mon > 0 && mon <= 12 && year >= 4;
}
-static waypoint* make_point(double lat, double lon, double alt, time_t tim, const char* fmt, int index)
+static Waypoint* make_point(double lat, double lon, double alt, time_t tim, const char* fmt, int index)
{
char wp_name[20];
- waypoint* wpt = new waypoint;
+ Waypoint* wpt = new Waypoint;
sprintf(wp_name, fmt, index);
return wpt;
}
-static waypoint* make_waypoint(struct read_state* st, double lat, double lon, double alt, time_t tim)
+static Waypoint* make_waypoint(struct read_state* st, double lat, double lon, double alt, time_t tim)
{
return make_point(lat, lon, alt, tim, "WP%04d", ++st->wpn);
}
-static waypoint* make_trackpoint(struct read_state* st, double lat, double lon, double alt, time_t tim)
+static Waypoint* make_trackpoint(struct read_state* st, double lat, double lon, double alt, time_t tim)
{
return make_point(lat, lon, alt, tim, "TP%04d", ++st->tpn);
}
uint32_t tim;
double lat, lon, alt;
time_t rtim;
- waypoint* tpt = NULL;
+ Waypoint* tpt = NULL;
const char* bp = (const char*) buf;
size_t buf_used = fmt_version[fmt].reclen;
uint16_t flags;
double lat, lon, alt;
time_t rtim;
- waypoint* tpt = NULL;
+ Waypoint* tpt = NULL;
const char* bp = (const char*) buf;
/* Zero records are skipped */
rtim = decode_date(tim);
if ((flags & WBT201_WAYPOINT) && (global_opts.masked_objective & WPTDATAMASK)) {
- waypoint* wpt = make_waypoint(st, lat, lon, alt, rtim);
+ Waypoint* wpt = make_waypoint(st, lat, lon, alt, rtim);
waypt_add(wpt);
}
void wfff_e(xg_string args, const QXmlStreamAttributes* unused)
{
- waypoint* wpt_tmp =0;
+ Waypoint* wpt_tmp =0;
char desc[255] ="\0";
if ((ap_hdop>=1)&&(ap_hdop<50)) { // Discard invalid GPS fix
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
if (snmac) {
wpt_tmp->shortname = ap_mac;
track_add_head(trk);
while (!gbfeof(fin)) {
- waypoint* wpt;
+ Waypoint* wpt;
uint16_t flags = gbfgetuint16(fin);
uint32_t date = gbfgetuint32(fin);
int32_t latitude = gbfgetint32(fin);
int16_t alt = gbfgetint16(fin); // Signed. Meters.
(void) flags; // Silence 'unused' warning until we use flags.
- wpt = new waypoint;
+ wpt = new Waypoint;
wpt->latitude = latitude / 1.0e7;
wpt->longitude = longitude / 1.0e7;
wpt->SetCreationTime(wintec_date_to_time(date));
// Wintec's software puts a waypoint in the track, so we
// mock that.
if (flags & 0x02) {
- waypoint* temp = new waypoint(*wpt);
+ Waypoint* temp = new Waypoint(*wpt);
waypt_add(temp);
}
static void
-xcsv_wr_position(waypoint* wpt)
+xcsv_wr_position(Waypoint* wpt)
{
/* Tweak incoming name if we don't have a fix */
switch (wpt->fix) {
#include "jeeps/gpsmath.h"
#include "garmin_tables.h"
-static waypoint* wpt;
+static Waypoint* wpt;
static route_head* trk;
static gbfile* fout;
static int space;
{
if (attrv->hasAttribute("type")) {
if (attrv->value("type") == "waypoint") {
- wpt = new waypoint;
+ wpt = new Waypoint;
} else if (attrv->value("type") == "polyline") {
trk = route_head_alloc();
track_add_head(trk);
/* writer */
static void
-xol_fatal_outside(const waypoint* wpt)
+xol_fatal_outside(const Waypoint* wpt)
{
gbfprintf(fout, "#####\n");
fatal(MYNAME ": %s (%s) is outside of convertable area \"%s\"!\n",
static void
-xol_write_time(const waypoint* wpt)
+xol_write_time(const Waypoint* wpt)
{
QString time_string = wpt->CreationTimeXML();
if (!time_string.isEmpty()) {
}
static void
-xol_waypt_bound_calc(const waypoint* wpt)
+xol_waypt_bound_calc(const Waypoint* wpt)
{
waypt_add_to_bounds(&all_bounds, wpt);
}
}
static void
-xol_waypt_disp_cb(const waypoint* wpt)
+xol_waypt_disp_cb(const Waypoint* wpt)
{
double x, y;
}
static void
-xol_trkpt_disp_cb(const waypoint* wpt)
+xol_trkpt_disp_cb(const Waypoint* wpt)
{
double x, y;
#include "defs.h"
#include "xmlgeneric.h"
-static waypoint* wpt_tmp;
+static Waypoint* wpt_tmp;
static char* as;
#define MYNAME "yahoo"
void wpt_s(xg_string args, const QXmlStreamAttributes* unused)
{
- wpt_tmp = new waypoint;
+ wpt_tmp = new Waypoint;
}
void wpt_e(xg_string args, const QXmlStreamAttributes* unused)